mirror of https://github.com/zulip/zulip.git
github: Suppress pull request notifications for CUSTOMER18.
(imported from commit adacd7ef23b1762276888c9bda5c69fd6c89ede4)
This commit is contained in:
parent
93b4fcfeac
commit
68fc8e161f
|
@ -1299,7 +1299,8 @@ def api_github_landing(request, user_profile, event=POST,
|
||||||
|
|
||||||
repository = payload['repository']
|
repository = payload['repository']
|
||||||
|
|
||||||
if event == 'pull_request':
|
# CUSTOMER18 has requested not to get pull request notifications
|
||||||
|
if event == 'pull_request' and user_profile.realm.domain not in ['customer18.invalid', 'humbughq.com']:
|
||||||
pull_req = payload['pull_request']
|
pull_req = payload['pull_request']
|
||||||
|
|
||||||
subject = "%s: pull request %d" % (repository['name'],
|
subject = "%s: pull request %d" % (repository['name'],
|
||||||
|
|
Loading…
Reference in New Issue