mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 15:03:34 +00:00
github: Make pull request comments go to the user-specified stream
(imported from commit dfce76bcba43dd4a0beba6b6af7642363193dcde)
This commit is contained in:
@@ -3478,6 +3478,12 @@ class GithubHookTests(AuthedTestCase):
|
|||||||
"zulip-test: pull request 9: Less cowbell.",
|
"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~~~")
|
"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):
|
class PivotalHookTests(AuthedTestCase):
|
||||||
|
|
||||||
def send_pivotal_message(self, name):
|
def send_pivotal_message(self, name):
|
||||||
|
|||||||
@@ -81,7 +81,6 @@ def api_github_landing(request, user_profile, event=REQ,
|
|||||||
noun = 'issue'
|
noun = 'issue'
|
||||||
else:
|
else:
|
||||||
# It's a pull request comment
|
# It's a pull request comment
|
||||||
stream = 'commits'
|
|
||||||
noun = 'pull request'
|
noun = 'pull request'
|
||||||
|
|
||||||
subject = github_generic_subject(noun, repository, issue)
|
subject = github_generic_subject(noun, repository, issue)
|
||||||
|
|||||||
Reference in New Issue
Block a user