Skip to content

Commit 8669352

Browse files
martinpittallisonkarlitskaya
authored andcommitted
tasks: Stop reacting to opened issue
This causes a duplicate image-refresh job for auto-generated image refresh issues. These generate both an "opened" and "labelled" event at the same tme, so that we'll get two `issues-scan` webhook queue entries, and the API query in `issue-scan` will see a "bot" labeled issue for both responses. It is enough to react to the "labeled" event.
1 parent 40c6a90 commit 8669352

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks/container/webhook

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ class CockpituousHandler(github_handler.GithubHandler):
159159

160160
def handle_issues_event(self, event, request):
161161
action = request['action']
162-
if event == 'issues' and action not in ['opened', 'edited', 'labeled']:
162+
if event == 'issues' and action not in ['edited', 'labeled']:
163163
logging.info("action %s unknown, skipping issues event" % action)
164164
return None
165165

0 commit comments

Comments
 (0)