1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:17:36 +00:00

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

View file

@ -58,9 +58,11 @@ def compute_lines(wrapper):
if raw_action == 'opened': if raw_action == 'opened':
action = 'opened' action = 'opened'
elif raw_action == 'reopened': elif raw_action == 'reopened':
action = 'reopened' # Reduce spam, don't notify about reopened PRs
return False
elif raw_action == 'synchronize': elif raw_action == 'synchronize':
action = 'updated' # Reduce spam, don't notify about PR updates
return False
else: else:
action = '{}(?)'.format(raw_action) action = '{}(?)'.format(raw_action)
if event['pull_request'].get('draft', True): if event['pull_request'].get('draft', True):