Skip to content

Commit 8bf8801

Browse files
authored
Ignore issue open events for watchers. (#236)
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
1 parent 0749c23 commit 8bf8801

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

handlers/watchers/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ def build_message(mentions):
2323

2424
class WatchersHandler(EventHandler):
2525
def on_pr_opened(self, api, payload):
26+
if "pull_request" not in payload:
27+
return
28+
2629
user = payload['pull_request']['user']['login']
2730

2831
watchers = get_people_from_config(api, WATCHERS_CONFIG_FILE)

0 commit comments

Comments
 (0)