Skip to content

Commit 5559856

Browse files
ralphbeanazhuzhu
authored andcommitted
Handle other PR events (release-engineering#277)
PRs can be labelled and "milestone'd" as well as just commented on, which get exposed issue events. Here, broaden the terms of this condition to cover all of those events.
1 parent 306cec0 commit 5559856

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sync2jira/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,9 +289,9 @@ def handle_msg(msg, suffix, config):
289289
"""
290290
issue = None
291291
pr = None
292-
# GitHub '.issue.' is used for both PR and Issue
292+
# GitHub '.issue*' is used for both PR and Issue
293293
# Check for that edge case
294-
if suffix == 'github.issue.comment':
294+
if suffix.startswith('github.issue'):
295295
if 'pull_request' in msg['msg']['issue'] and msg['msg']['action'] != 'deleted':
296296
# pr_filter turns on/off the filtering of PRs
297297
pr = issue_handlers[suffix](msg, config, pr_filter=False)

0 commit comments

Comments
 (0)