Skip to content

Commit

Permalink
Clean up GitHub API hook v1 comment.
Browse files Browse the repository at this point in the history
(imported from commit 3777f2c9305bb8000e5ea4142bd2974805fa3c90)
  • Loading branch information
timabbott committed Sep 25, 2015
1 parent 9c0c5c5 commit 8967029
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion zerver/views/webhooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ def api_github_v2(user_profile, event, payload, branches, default_stream, commit
subject = github_generic_subject('pull request', topic_focus, pull_req)
content = github_generic_content('pull request', payload, pull_req)
elif event == 'issues':
# in v1, we assume that this stream exists, since we only handle issues for CUSTOMER5 and ourselves
# in v1, we assume that this stream exists since it is
# deprecated and the few realms that use it already have the
# stream
target_stream = issue_stream
issue = payload['issue']
subject = github_generic_subject('issue', topic_focus, issue)
Expand Down

0 comments on commit 8967029

Please sign in to comment.