github: Suppress pull request notifications for CUSTOMER18.

(imported from commit adacd7ef23b1762276888c9bda5c69fd6c89ede4)
This commit is contained in:
Waseem Daher 2013-03-07 22:15:54 -05:00
parent 93b4fcfeac
commit 68fc8e161f
1 changed files with 2 additions and 1 deletions

View File

@ -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'],