Skip to content

Instantly share code, notes, and snippets.

@malfet
Last active March 22, 2022 21:05
Show Gist options
  • Save malfet/b9c4be4e775165821722ecfb2efaea57 to your computer and use it in GitHub Desktop.
Save malfet/b9c4be4e775165821722ecfb2efaea57 to your computer and use it in GitHub Desktop.
GQL to query annotations
{
repository(name: "pytorch", owner: "pytorch") {
object(oid: "7dd08230117f4fa8bb82b3524e90fb00340198c7") {
... on Commit {
checkSuites(first: 100, filterBy: {appId: 15368}) {
nodes {
workflowRun {
workflow {
name
}
}
checkRuns(
first: 100
filterBy: {checkName: "macos-11-py3-x86-64 / test (default, 1, 2, macos-11)"}
) {
nodes {
name
conclusion
annotations(first: 10) {
nodes {
annotationLevel
message
}
}
}
}
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment