mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 17:07:07 +00:00
Add on betwen comment action and noun in comments messages from git integrations.
Improve English grammar in comment messages in git integrations by adding 'on' between comment action and noun (PR, Issue, Commit).
This commit is contained in:
@@ -95,7 +95,7 @@ class GithubV1HookTests(WebhookTestCase):
|
||||
# type: () -> None
|
||||
self.basic_test('issue_comment', 'issues',
|
||||
"zulip-test / Issue #5 The frobnicator doesn't work",
|
||||
"zbenjamin [commented](https://github.com/zbenjamin/zulip-test/issues/5#issuecomment-23374280) [Issue](https://github.com/zbenjamin/zulip-test/issues/5)\n\n~~~ quote\nWhoops, I did something wrong.\r\n\r\nI'm sorry.\n~~~")
|
||||
"zbenjamin [commented](https://github.com/zbenjamin/zulip-test/issues/5#issuecomment-23374280) on [Issue](https://github.com/zbenjamin/zulip-test/issues/5)\n\n~~~ quote\nWhoops, I did something wrong.\r\n\r\nI'm sorry.\n~~~")
|
||||
|
||||
def test_issues_closed(self):
|
||||
# type: () -> None
|
||||
@@ -125,13 +125,13 @@ class GithubV1HookTests(WebhookTestCase):
|
||||
# type: () -> None
|
||||
self.basic_test('pull_request_comment', 'commits',
|
||||
"zulip-test / PR #9 Less cowbell.",
|
||||
"zbenjamin [commented](https://github.com/zbenjamin/zulip-test/pull/9#issuecomment-24771110) [PR](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 [PR](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):
|
||||
# type: () -> None
|
||||
self.basic_test('pull_request_comment', 'my_commits',
|
||||
"zulip-test / PR #9 Less cowbell.",
|
||||
"zbenjamin [commented](https://github.com/zbenjamin/zulip-test/pull/9#issuecomment-24771110) [PR](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 [PR](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)
|
||||
|
||||
def test_commit_comment(self):
|
||||
@@ -236,7 +236,7 @@ class GithubV2HookTests(WebhookTestCase):
|
||||
# type: () -> None
|
||||
self.basic_test('issue_comment', 'issues',
|
||||
"zulip-test / Issue #5 The frobnicator doesn't work",
|
||||
"zbenjamin [commented](https://github.com/zbenjamin/zulip-test/issues/5#issuecomment-23374280) [Issue](https://github.com/zbenjamin/zulip-test/issues/5)\n\n~~~ quote\nWhoops, I did something wrong.\r\n\r\nI'm sorry.\n~~~")
|
||||
"zbenjamin [commented](https://github.com/zbenjamin/zulip-test/issues/5#issuecomment-23374280) on [Issue](https://github.com/zbenjamin/zulip-test/issues/5)\n\n~~~ quote\nWhoops, I did something wrong.\r\n\r\nI'm sorry.\n~~~")
|
||||
|
||||
def test_issues_closed(self):
|
||||
# type: () -> None
|
||||
@@ -267,13 +267,13 @@ class GithubV2HookTests(WebhookTestCase):
|
||||
# type: () -> None
|
||||
self.basic_test('pull_request_comment', 'commits',
|
||||
"zulip-test / PR #9 Less cowbell.",
|
||||
"zbenjamin [commented](https://github.com/zbenjamin/zulip-test/pull/9#issuecomment-24771110) [PR](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 [PR](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):
|
||||
# type: () -> None
|
||||
self.basic_test('pull_request_comment', 'my_commits',
|
||||
"zulip-test / PR #9 Less cowbell.",
|
||||
"zbenjamin [commented](https://github.com/zbenjamin/zulip-test/pull/9#issuecomment-24771110) [PR](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 [PR](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)
|
||||
|
||||
def test_commit_comment(self):
|
||||
|
||||
Reference in New Issue
Block a user