Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit04431bf

Browse files
authored
Only leave a comment when no more pending CI (GH-28)
- Ensure travis job has kicked off before checking for `pending` status.
1 parent4607444 commit04431bf

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

‎backport/status_change.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,12 @@ async def check_status(event, gh, *args, **kwargs):
2626
response=requests.get(status_url,
2727
headers=request_headers)
2828
result=response.json()
29-
print(f"miss-islington's PR state changed:{result['state']}")
30-
ifresult["state"]!="pending":
29+
all_ci_status= [status["state"]forstatusinresult["statuses"]]
30+
all_ci_context= [status["context"]forstatusinresult["statuses"]]
31+
print(f"miss-islington's PR state changed:{all_ci_status}")
32+
print(f"miss-islington's PR CI:{all_ci_context}")
33+
if"pending"notinall_ci_status \
34+
and"continuous-integration/travis-ci/pr"inall_ci_context:
3135
url="https://api.github.com/repos/miss-islington/cpython/git/refs/heads/"
3236
response=requests.get(url,headers=request_headers)
3337
forrefinresponse.json():

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp