From 404cd631f4e34ffcbe6d79af9f2c9104054f380b Mon Sep 17 00:00:00 2001 From: Sarina Canelake Date: Wed, 8 Oct 2014 11:01:37 -0400 Subject: [PATCH] Ignore github labeling events --- openedx_webhooks/views/github.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openedx_webhooks/views/github.py b/openedx_webhooks/views/github.py index e97c96f3..2b468b3d 100644 --- a/openedx_webhooks/views/github.py +++ b/openedx_webhooks/views/github.py @@ -36,6 +36,8 @@ def github_pull_request(): return pr_opened(pr, bugsnag_context) if event["action"] == "closed": return pr_closed(pr, bugsnag_context) + if event["action"] == "labeled": + return "Ignoring labeling events from github", 200 print( "Received {action} event on PR #{num} against {repo}, don't know how to handle it".format(