Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 935d2e9

Browse files
authored
Merge pull request spotify#51 from spotify/jolsson/support-stale
Support stale check run conclusion
2 parents 5a4c9b5 + 9452005 commit 935d2e9

File tree

2 files changed

+163
-0
lines changed

2 files changed

+163
-0
lines changed

src/main/java/com/spotify/github/v3/checks/CheckRunConclusion.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,5 @@ public enum CheckRunConclusion {
3232
failure,
3333
neutral,
3434
success,
35+
stale
3536
}

src/test/resources/com/spotify/github/v3/checks/checks-runs-list.json

Lines changed: 162 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,168 @@
7373
}
7474
}
7575
]
76+
},
77+
{
78+
"id": 36291,
79+
"node_id": "SSdtIGEgYmFzZTY0IGVuY29kZWQgc3RyaW5nIHlheSE=",
80+
"head_sha": "4ab657a045f4530b59cf669121d7e52483ca351c",
81+
"external_id": "",
82+
"url": "https://api.github.com/api/v3/repos/baxterthehacker/public-repo/check-runs/36291",
83+
"html_url": "https://api.github.com/baxterthehacker/public-repo/runs/36291",
84+
"details_url": "http://external.url",
85+
"status": "completed",
86+
"conclusion": "stale",
87+
"started_at": "2019-10-17T12:22:24Z",
88+
"completed_at": "2021-01-30T07:54:52Z",
89+
"output": {
90+
"title": "Pending Check: apk-size",
91+
"summary": "",
92+
"text": "",
93+
"annotations_count": 0,
94+
"annotations_url": "https://api.github.com/api/v3/repos/baxterthehacker/public-repo/check-runs/36291/annotations"
95+
},
96+
"name": "the-check",
97+
"check_suite": {
98+
"id": 48313,
99+
"node_id": "SSdtIGEgYmFzZTY0IGVuY29kZWQgc3RyaW5nIHlheSE=",
100+
"head_branch": "baxterthehacker-temp-53749",
101+
"head_sha": "4ab657a045f4530b59cf669121d7e52483ca351c",
102+
"status": "in_progress",
103+
"conclusion": null,
104+
"url": "https://api.github.com/api/v3/repos/baxterthehacker/public-repo/check-suites/48313",
105+
"before": "39f902d4cd9dc3ea2327c25f7d123081529adf9e",
106+
"after": "4ab657a045f4530b59cf669121d7e52483ca351c",
107+
"pull_requests": [],
108+
"app": {
109+
"id": 6,
110+
"slug": "some-ci",
111+
"node_id": "SSdtIGEgYmFzZTY0IGVuY29kZWQgc3RyaW5nIHlheSE=",
112+
"owner": {
113+
"login": "ci-team",
114+
"id": 1063,
115+
"node_id": "SSdtIGEgYmFzZTY0IGVuY29kZWQgc3RyaW5nIHlheSE=",
116+
"avatar_url": "https://api.github.com/avatars/u/1063?",
117+
"gravatar_id": "",
118+
"url": "https://api.github.com/api/v3/users/ci-team",
119+
"html_url": "https://api.github.com/ci-team",
120+
"followers_url": "https://api.github.com/api/v3/users/ci-team/followers",
121+
"following_url": "https://api.github.com/api/v3/users/ci-team/following{/other_user}",
122+
"gists_url": "https://api.github.com/api/v3/users/ci-team/gists{/gist_id}",
123+
"starred_url": "https://api.github.com/api/v3/users/ci-team/starred{/owner}{/repo}",
124+
"subscriptions_url": "https://api.github.com/api/v3/users/ci-team/subscriptions",
125+
"organizations_url": "https://api.github.com/api/v3/users/ci-team/orgs",
126+
"repos_url": "https://api.github.com/api/v3/users/ci-team/repos",
127+
"events_url": "https://api.github.com/api/v3/users/ci-team/events{/privacy}",
128+
"received_events_url": "https://api.github.com/api/v3/users/ci-team/received_events",
129+
"type": "Organization",
130+
"site_admin": false
131+
},
132+
"name": "Name",
133+
"description": "",
134+
"external_url": "https://spotify.com",
135+
"html_url": "https://api.github.com/github-apps/some-ci",
136+
"created_at": "2019-02-11T10:11:00Z",
137+
"updated_at": "2019-12-09T13:06:46Z",
138+
"permissions": {
139+
"administration": "read",
140+
"checks": "write",
141+
"contents": "read",
142+
"issues": "write",
143+
"metadata": "read",
144+
"pull_requests": "write",
145+
"repository_hooks": "read",
146+
"statuses": "write"
147+
},
148+
"events": [
149+
"check_run",
150+
"check_suite",
151+
"commit_comment",
152+
"create",
153+
"delete",
154+
"fork",
155+
"gollum",
156+
"issues",
157+
"issue_comment",
158+
"label",
159+
"milestone",
160+
"public",
161+
"pull_request",
162+
"pull_request_review",
163+
"pull_request_review_comment",
164+
"push",
165+
"release",
166+
"repository",
167+
"status",
168+
"watch"
169+
]
170+
},
171+
"created_at": "2019-10-17T12:22:27Z",
172+
"updated_at": "2019-10-17T12:24:01Z"
173+
},
174+
"app": {
175+
"id": 6,
176+
"slug": "some-ci",
177+
"node_id": "SSdtIGEgYmFzZTY0IGVuY29kZWQgc3RyaW5nIHlheSE=",
178+
"owner": {
179+
"login": "ci-team",
180+
"id": 1063,
181+
"node_id": "SSdtIGEgYmFzZTY0IGVuY29kZWQgc3RyaW5nIHlheSE=",
182+
"avatar_url": "https://api.github.com/avatars/u/1063?",
183+
"gravatar_id": "",
184+
"url": "https://api.github.com/api/v3/users/ci-team",
185+
"html_url": "https://api.github.com/ci-team",
186+
"followers_url": "https://api.github.com/api/v3/users/ci-team/followers",
187+
"following_url": "https://api.github.com/api/v3/users/ci-team/following{/other_user}",
188+
"gists_url": "https://api.github.com/api/v3/users/ci-team/gists{/gist_id}",
189+
"starred_url": "https://api.github.com/api/v3/users/ci-team/starred{/owner}{/repo}",
190+
"subscriptions_url": "https://api.github.com/api/v3/users/ci-team/subscriptions",
191+
"organizations_url": "https://api.github.com/api/v3/users/ci-team/orgs",
192+
"repos_url": "https://api.github.com/api/v3/users/ci-team/repos",
193+
"events_url": "https://api.github.com/api/v3/users/ci-team/events{/privacy}",
194+
"received_events_url": "https://api.github.com/api/v3/users/ci-team/received_events",
195+
"type": "Organization",
196+
"site_admin": false
197+
},
198+
"name": "some-ci",
199+
"description": "",
200+
"external_url": "http://external.url",
201+
"html_url": "https://api.github.com/github-apps/some-ci",
202+
"created_at": "2019-02-11T10:11:00Z",
203+
"updated_at": "2019-12-09T13:06:46Z",
204+
"permissions": {
205+
"administration": "read",
206+
"checks": "write",
207+
"contents": "read",
208+
"issues": "write",
209+
"metadata": "read",
210+
"pull_requests": "write",
211+
"repository_hooks": "read",
212+
"statuses": "write"
213+
},
214+
"events": [
215+
"check_run",
216+
"check_suite",
217+
"commit_comment",
218+
"create",
219+
"delete",
220+
"fork",
221+
"gollum",
222+
"issues",
223+
"issue_comment",
224+
"label",
225+
"milestone",
226+
"public",
227+
"pull_request",
228+
"pull_request_review",
229+
"pull_request_review_comment",
230+
"push",
231+
"release",
232+
"repository",
233+
"status",
234+
"watch"
235+
]
236+
},
237+
"pull_requests": []
76238
}
77239
]
78240
}

0 commit comments

Comments
 (0)