Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
webhooks: Add body to PR Review Event message for GitHub Integration.
sbansal1999f47a1c67a627
diff --git a/zerver/webhooks/github/tests.py b/zerver/webhooks/github/tests.pyindex 72a4a02249a..146c865b185 100644--- a/zerver/webhooks/github/tests.py+++ b/zerver/webhooks/github/tests.py@@ -240,13 +240,13 @@ class GitHubWebhookTest(WebhookTestCase):self.check_webhook("status__with_target_url", TOPIC_REPO, expected_message)def test_pull_request_review_msg(self) -> None:- expected_message = "baxterthehacker submitted [PR review](https://github.com/baxterthehacker/public-repo/pull/1#pullrequestreview-2626884)."+ expected_message = "baxterthehacker submitted [PR review](https://github.com/baxterthehacker/public-repo/pull/1#pullrequestreview-2626884):\n\n~~~ quote\nLooks great!\n~~~"self.check_webhook("pull_request_review", TOPIC_PR, expected_message)def test_pull_request_review_msg_with_custom_topic_in_url(self) -> None:self.url = self.build_webhook_url(topic="notifications")expected_topic = "notifications"- expected_message = "baxterthehacker submitted [PR review for #1 Update the README with new information](https://github.com/baxterthehacker/public-repo/pull/1#pullrequestreview-2626884)."+ expected_message = "baxterthehacker submitted [PR review for #1 Update the README with new information](https://github.com/baxterthehacker/public-repo/pull/1#pullrequestreview-2626884):\n\n~~~ quote\nLooks great!\n~~~"self.check_webhook("pull_request_review", expected_topic, expected_message)def test_pull_request_review_comment_msg(self) -> None:diff --git a/zerver/webhooks/github/view.py b/zerver/webhooks/github/view.pyindex ea22a580ead..8b414adcac2 100644--- a/zerver/webhooks/github/view.py+++ b/zerver/webhooks/github/view.py@@ -490,6 +490,7 @@ def get_pull_request_review_body(helper: Helper) -> str:url=payload["review"]["html_url"].tame(check_string),type="PR review",title=title if include_title else None,+ message=payload["review"]["body"].tame(check_string),)