-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathghstatus.gql
51 lines (48 loc) · 1.11 KB
/
ghstatus.gql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#~github~
mutation start_check_run($repo:ID!, $sha:GitObjectID!) {
createCheckRun(input: {
headSha: $sha
name: "gqlmod check"
repositoryId: $repo
status: IN_PROGRESS
}) {
checkRun {
id
}
}
}
mutation append_check_run($repo:ID!, $checkrun:ID!, $text:String, $annotations:[CheckAnnotationData!]) {
updateCheckRun(input: {
repositoryId: $repo
checkRunId: $checkrun
output: {
title: "gqlmod check"
summary: "Running..."
annotations: $annotations
text: $text
}
}) {
checkRun {
id
}
}
}
mutation complete_check_run(
$repo:ID!, $checkrun:ID!, $state:CheckConclusionState,
$summary:String="Finished"
) {
updateCheckRun(input: {
repositoryId: $repo
checkRunId: $checkrun
status: COMPLETED
conclusion: $state # Probably want either FAILURE or SUCCESS
output: {
title: "gqlmod check"
summary: $summary
}
}) {
checkRun {
id
}
}
}