From 425b2df4b4beb7c3da80ec09cd84c5281d6cbe19 Mon Sep 17 00:00:00 2001 From: acrefoot Date: Fri, 31 Jan 2014 15:34:35 -0500 Subject: [PATCH] Filter out synchronize messages on github pull requests for CUSTOMER23 (imported from commit 7032edd79738eba6119eedf15acdb77ef04a8a3c) --- zerver/views/webhooks.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zerver/views/webhooks.py b/zerver/views/webhooks.py index a953b7decd..ffa7fd515a 100644 --- a/zerver/views/webhooks.py +++ b/zerver/views/webhooks.py @@ -187,6 +187,10 @@ def api_github_landing(request, user_profile, event=REQ, if event in ('issues', 'issue_comment', 'push') and user_profile.realm.domain in ('customer37.invalid', 'customer38.invalid'): return json_success() + # CUSTOMER23 doesn't want synchronize events for pull_requests + if event == "pull_request" and payload['action'] == "synchronize" and user_profile.realm.domain == "customer23.invalid": + return json_success() + ### Zulip-specific logic # We currently handle push, pull_request, issues, issue_comment, commit_comment