Skip to content

GraphQL API response for commit status is null #24508

Discussion options

You must be logged in to vote

Hey @pascaldevink!

I think the GraphQL API may be able to do what you want! There is a Commit.checkSuites connection that should get you the names and statuses of CircleCI’s Checks, something like this:

query ($owner: String!, $name: String!) {
  repository(owner: $owner, name: $name) {
    pullRequests(last: 10, states: OPEN) {
      nodes {
        commits(last: 1) {
          nodes {
            commit {
              checkSuites(first: 10) {
                nodes {
                  app {
                    name
                  }
                  checkRuns(first:10) {
                    nodes {
                      status
                      name
                    }
        …

Replies: 10 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
1 reply
@Starefossen
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants