Filter out synchronize messages on github pull requests for CUSTOMER23

(imported from commit 7032edd79738eba6119eedf15acdb77ef04a8a3c)
This commit is contained in:
acrefoot 2014-01-31 15:34:35 -05:00
parent 38636d5125
commit 425b2df4b4

View File

@ -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