@@ -171,29 +171,31 @@ async def on_pr(event):
171
171
await gh_api .post (
172
172
check_runs_base_uri ,
173
173
preview_api_version = 'antiope' ,
174
- data = to_gh_query (NewCheckRequest (
175
- head_branch , head_sha ,
176
- name = checks_api_name ,
177
- status = 'completed' ,
178
- started_at = f'{ datetime .utcnow ().isoformat ()} Z' ,
179
- completed_at = f'{ datetime .utcnow ().isoformat ()} Z' ,
180
- conclusion = 'neutral' ,
181
- output = {
182
- 'title' :
183
- f'{ checks_summary_title_prefix !s} '
184
- 'Nothing to do — change note not required' ,
185
- 'text' : f'Labels: { ", " .join (pr_labels )} ' ,
186
- 'summary' :
187
- 'Heeeeey!'
188
- '\n \n '
189
- f'This PR has the `{ repo_skip_label } ` label meaning '
190
- 'that the maintainers do not expect a change note in '
191
- 'this pull request but you are still welcome to add '
192
- 'one if you feel like it may be useful in the '
193
- 'user-facing 📝 changelog.'
194
- f'{ checks_summary_epilogue !s} ' ,
195
- },
196
- )),
174
+ data = to_gh_query (
175
+ NewCheckRequest (
176
+ head_branch , head_sha ,
177
+ name = checks_api_name ,
178
+ status = 'completed' ,
179
+ started_at = f'{ datetime .utcnow ().isoformat ()} Z' ,
180
+ completed_at = f'{ datetime .utcnow ().isoformat ()} Z' ,
181
+ conclusion = 'neutral' ,
182
+ output = {
183
+ 'title' :
184
+ f'{ checks_summary_title_prefix !s} '
185
+ 'Nothing to do — change note not required' ,
186
+ 'text' : f'Labels: { ", " .join (pr_labels )} ' ,
187
+ 'summary' :
188
+ 'Heeeeey!'
189
+ '\n \n '
190
+ f'This PR has the `{ repo_skip_label } ` label '
191
+ 'meaning that the maintainers do not expect a '
192
+ 'change note in this pull request but you are '
193
+ 'still welcome to add one if you feel like it may '
194
+ 'be useful in the user-facing 📝 changelog.'
195
+ f'{ checks_summary_epilogue !s} ' ,
196
+ },
197
+ ),
198
+ ),
197
199
)
198
200
return # Interrupt the webhook event processing
199
201
@@ -205,47 +207,52 @@ async def on_pr(event):
205
207
await gh_api .post (
206
208
check_runs_base_uri ,
207
209
preview_api_version = 'antiope' ,
208
- data = to_gh_query (NewCheckRequest (
209
- head_branch , head_sha ,
210
- name = checks_api_name ,
211
- status = 'completed' ,
212
- started_at = f'{ datetime .utcnow ().isoformat ()} Z' ,
213
- completed_at = f'{ datetime .utcnow ().isoformat ()} Z' ,
214
- conclusion = 'neutral' ,
215
- output = {
216
- 'title' : f'{ checks_summary_title_prefix !s} Nothing to do' ,
217
- 'text' :
218
- 'The author of this change '
219
- f"({ pr_author ['login' ]!s} ) "
220
- 'is ignored because it is excluded '
221
- 'via the repository config.' ,
222
- 'summary' :
223
- 'Heeeeey!'
224
- "We've got an inclusive and welcoming community here."
225
- '\n \n '
226
- 'All robots 🤖 are welcome to send PRs, '
227
- 'no strings attached! '
228
- 'This change does not need to be recorded '
229
- 'to our chronicles.'
230
- '\n \n '
231
- ''
234
- f'{ checks_summary_epilogue !s} ' ,
235
- },
236
- )),
210
+ data = to_gh_query (
211
+ NewCheckRequest (
212
+ head_branch , head_sha ,
213
+ name = checks_api_name ,
214
+ status = 'completed' ,
215
+ started_at = f'{ datetime .utcnow ().isoformat ()} Z' ,
216
+ completed_at = f'{ datetime .utcnow ().isoformat ()} Z' ,
217
+ conclusion = 'neutral' ,
218
+ output = {
219
+ 'title' :
220
+ f'{ checks_summary_title_prefix !s} Nothing to do' ,
221
+ 'text' :
222
+ 'The author of this change '
223
+ f"({ pr_author ['login' ]!s} ) "
224
+ 'is ignored because it is excluded '
225
+ 'via the repository config.' ,
226
+ 'summary' :
227
+ 'Heeeeey!'
228
+ "We've got an inclusive and welcoming community "
229
+ 'here.\n \n '
230
+ 'All robots 🤖 are welcome to send PRs, '
231
+ 'no strings attached! '
232
+ 'This change does not need to be recorded '
233
+ 'to our chronicles.'
234
+ '\n \n '
235
+ ''
238
+ f'{ checks_summary_epilogue !s} ' ,
239
+ },
240
+ ),
241
+ ),
237
242
)
238
243
return # Interrupt the webhook event processing
239
244
240
245
resp = await gh_api .post (
241
246
check_runs_base_uri ,
242
247
preview_api_version = 'antiope' ,
243
- data = to_gh_query (NewCheckRequest (
244
- head_branch , head_sha ,
245
- name = checks_api_name ,
246
- status = 'queued' ,
247
- started_at = f'{ datetime .utcnow ().isoformat ()} Z' ,
248
- )),
248
+ data = to_gh_query (
249
+ NewCheckRequest (
250
+ head_branch , head_sha ,
251
+ name = checks_api_name ,
252
+ status = 'queued' ,
253
+ started_at = f'{ datetime .utcnow ().isoformat ()} Z' ,
254
+ ),
255
+ ),
249
256
)
250
257
logger .info (
251
258
'Check suite ID is %s' ,
0 commit comments