summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Wiederhake <BenWiederhake.GitHub@gmx.de>2020-11-25 20:47:01 +0100
committerAndreas Kling <kling@serenityos.org>2020-11-25 20:50:22 +0100
commitec36388f4016ca4b5e53da6a9dd2c08a3676dd80 (patch)
treef2111a481c0f93c36de4e1db551dd0e1623da293
parent5dcd1c270974c4fbc92e5843c9141e4b5eb5f8e7 (diff)
downloadserenity-ec36388f4016ca4b5e53da6a9dd2c08a3676dd80.zip
Meta: Reduce IRC spam
Fixes #4145.
-rwxr-xr-xMeta/notify_irc.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Meta/notify_irc.py b/Meta/notify_irc.py
index 12c30edce8..3389600928 100755
--- a/Meta/notify_irc.py
+++ b/Meta/notify_irc.py
@@ -58,9 +58,11 @@ def compute_lines(wrapper):
if raw_action == 'opened':
action = 'opened'
elif raw_action == 'reopened':
- action = 'reopened'
+ # Reduce spam, don't notify about reopened PRs
+ return False
elif raw_action == 'synchronize':
- action = 'updated'
+ # Reduce spam, don't notify about PR updates
+ return False
else:
action = '{}(?)'.format(raw_action)
if event['pull_request'].get('draft', True):