From 68fc8e161fb0b8493e9d0f2680bc826ae0ec0a7b Mon Sep 17 00:00:00 2001 From: Waseem Daher Date: Thu, 7 Mar 2013 22:15:54 -0500 Subject: [PATCH] github: Suppress pull request notifications for CUSTOMER18. (imported from commit adacd7ef23b1762276888c9bda5c69fd6c89ede4) --- zephyr/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zephyr/views.py b/zephyr/views.py index 0a0f2a887d..131d1e97a7 100644 --- a/zephyr/views.py +++ b/zephyr/views.py @@ -1299,7 +1299,8 @@ def api_github_landing(request, user_profile, event=POST, 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'] subject = "%s: pull request %d" % (repository['name'],