Skip to content

Commit 6bd2082

Browse files
committed
Fix event_type comparison
1 parent a048b1a commit 6bd2082

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

image/tools/github_pr_comment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def find_pr() -> str:
4747

4848
event_type = os.environ['GITHUB_EVENT_NAME']
4949

50-
if event_type == ['pull_request', 'pull_request_review_comment']:
50+
if event_type in ['pull_request', 'pull_request_review_comment']:
5151
return event['pull_request']['url']
5252

5353
elif event_type == 'issue_comment':

0 commit comments

Comments
 (0)