From 4a858d7d1b0d889dedfcdf2d4c237ad0bd1fcd68 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Sun, 20 Sep 2015 12:16:12 -0700 Subject: [PATCH] Clean up api_github_v1 logic around issues stream. (imported from commit d40997de594834d2ec6f8f190ad04b20bfd45a4c) --- zerver/views/webhooks.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/zerver/views/webhooks.py b/zerver/views/webhooks.py index d31b056ee7..5969c25cc4 100644 --- a/zerver/views/webhooks.py +++ b/zerver/views/webhooks.py @@ -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' - + issue_stream = 'issues' return api_github_v2(user_profile, event, payload, branches, stream, commit_stream, issue_stream, **kwargs)