From ec36388f4016ca4b5e53da6a9dd2c08a3676dd80 Mon Sep 17 00:00:00 2001 From: Ben Wiederhake Date: Wed, 25 Nov 2020 20:47:01 +0100 Subject: [PATCH] Meta: Reduce IRC spam Fixes #4145. --- Meta/notify_irc.py | 6 ++++-- 1 file 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):