github: Make pull request comments go to the user-specified stream

(imported from commit dfce76bcba43dd4a0beba6b6af7642363193dcde)
This commit is contained in:
Zev Benjamin 2013-09-24 15:53:33 -04:00
parent e0f9f68219
commit f6500d691e
2 changed files with 6 additions and 1 deletions

View File

@ -3478,6 +3478,12 @@ class GithubHookTests(AuthedTestCase):
"zulip-test: pull request 9: Less cowbell.",
"zbenjamin [commented](https://github.com/zbenjamin/zulip-test/pull/9#issuecomment-24771110) on [pull request 9](https://github.com/zbenjamin/zulip-test/pull/9)\n\n~~~ quote\nYeah, who really needs more cowbell than we already have?\n~~~")
def test_pull_request_comment_user_specified_stream(self):
self.basic_test('pull_request_comment', 'my_commits',
"zulip-test: pull request 9: Less cowbell.",
"zbenjamin [commented](https://github.com/zbenjamin/zulip-test/pull/9#issuecomment-24771110) on [pull request 9](https://github.com/zbenjamin/zulip-test/pull/9)\n\n~~~ quote\nYeah, who really needs more cowbell than we already have?\n~~~",
send_stream=True)
class PivotalHookTests(AuthedTestCase):
def send_pivotal_message(self, name):

View File

@ -81,7 +81,6 @@ def api_github_landing(request, user_profile, event=REQ,
noun = 'issue'
else:
# It's a pull request comment
stream = 'commits'
noun = 'pull request'
subject = github_generic_subject(noun, repository, issue)