From c78c3f423c5913d3d9d9a89fb8145e7e658ee469 Mon Sep 17 00:00:00 2001 From: Eeshan Garg Date: Tue, 19 Feb 2019 17:56:11 -0330 Subject: [PATCH] webhooks/github: Ignore project_card events. The payloads for this event are missing some important details about the Project's changes, such as the name of the project, the card's column name, etc. Without such details, the resultant notifications would not be useful at all! --- zerver/webhooks/github/view.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zerver/webhooks/github/view.py b/zerver/webhooks/github/view.py index 28f8aa3748..7061fecc8f 100644 --- a/zerver/webhooks/github/view.py +++ b/zerver/webhooks/github/view.py @@ -424,7 +424,8 @@ EVENT_FUNCTION_MAPPER = { } IGNORED_EVENTS = [ - 'repository_vulnerability_alert' + 'repository_vulnerability_alert', + 'project_card', ] @api_key_only_webhook_view('GitHub', notify_bot_owner_on_invalid_json=True)