Meta: Reduce IRC spam

Fixes #4145.
This commit is contained in:
Ben Wiederhake 2020-11-25 20:47:01 +01:00 committed by Andreas Kling
parent 5dcd1c2709
commit ec36388f40
Notes: sideshowbarker 2024-07-19 01:16:05 +09:00

View File

@ -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):