mirror of
https://github.com/zulip/zulip.git
synced 2026-07-12 21:04:41 +08:00
Filter out synchronize messages on github pull requests for CUSTOMER23
(imported from commit 7032edd79738eba6119eedf15acdb77ef04a8a3c)
This commit is contained in:
parent
38636d5125
commit
425b2df4b4
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user