From 7dd64eb157f31d655c13cc95064564d6f738a954 Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Wed, 1 May 2013 17:38:31 -0400 Subject: [PATCH] Handle github sending empty string for the stream. (imported from commit 2fd85db1828be44ef63920d5df347b5f85acb573) --- zephyr/views.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/zephyr/views.py b/zephyr/views.py index 074f2313ce..a1d1feb729 100644 --- a/zephyr/views.py +++ b/zephyr/views.py @@ -1461,10 +1461,13 @@ def build_message_from_gitlog(user_profile, name, ref, commits, before, after, u def api_github_landing(request, user_profile, event=POST, payload=POST(converter=json_to_dict), branches=POST(default=''), - stream=POST(default='commits')): + stream=POST(default='')): # TODO: this should all be moved to an external bot repository = payload['repository'] + if not stream: + stream = 'commits' + # 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']