Clean up api_github_v1 logic around issues stream.

(imported from commit d40997de594834d2ec6f8f190ad04b20bfd45a4c)
This commit is contained in:
Tim Abbott
2015-09-20 12:16:12 -07:00
parent c5b44dc921
commit 4a858d7d1b

View File

@@ -50,14 +50,8 @@ def api_github_v1(user_profile, event, payload, branches, stream, **kwargs):
`payload` comes in unmodified from github
`stream` is set to 'commits' if otherwise unset
"""
commit_stream = stream
# in v1, we assume that the stream 'issues' exists, since we only handle issues for CUSTOMER5 and ourselves
issue_stream = stream
if user_profile.realm.domain in ('customer5.invalid', 'zulip.com'):
issue_stream = 'issues'
return api_github_v2(user_profile, event, payload, branches, stream, commit_stream, issue_stream, **kwargs)