8000 Fix incorrect success statement in status change comment (#501) · python/cpython@9fd4926 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9fd4926

Browse files
Fix incorrect success statement in status change comment (#501)
Co-authored-by: Mariatta Wijaya <Mariatt 8000 a@users.noreply.github.com>
1 parent 6375e9d commit 9fd4926

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

miss_islington/status_change.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,13 +133,15 @@ async def check_ci_status_and_approval(
133133
)
134134
if success:
135135
emoji = "✅"
136+
description = "success"
136137
else:
137138
emoji = "❌"
139+
description = "failure"
138140
print("leaving a comment")
139141
await util.leave_comment(
140142
gh,
141143
pr_number=pr_number,
142-
message=f"{participants}: Status check is done, and it's a {result['state']} {emoji} .",
144+
message=f"{participants}: Status check is done, and it's a {description} {emoji} .",
143145
)
144146
if success:
145147
if util.pr_is_awaiting_merge(pr_for_commit["labels"]):

0 commit comments

Comments
 (0)
0