Created
March 5, 2022 04:34
-
-
Save yeikel/63d81384f1989e78131241e2bc1f1221 to your computer and use it in GitHub Desktop.
Find status of latest commit Github API Grapqhql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query MyQuery { | |
repository(name: "spark", owner: "apache") { | |
pullRequest(number: 35738) { | |
commits(last: 1) { | |
nodes { | |
commit { | |
statusCheckRollup { | |
state | |
contexts(last: 10) { | |
edges { | |
node { | |
... on CheckRun { | |
name | |
conclusion | |
status | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
mergeable | |
viewerCanMergeAsAdmin | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Explorer https://docs.github.com/en/graphql/overview/explorer
Sample response