mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 22:43:42 +00:00
webhooks: Remove description from Issue Unassigned event message.
This commit removes the description from the Issue Unassigned event message that is sent by the Github Integration.
This commit is contained in:
@@ -154,14 +154,14 @@ class GitHubWebhookTest(WebhookTestCase):
|
||||
self.check_webhook("issues__assigned", expected_topic, expected_message)
|
||||
|
||||
def test_issue_unassigned(self) -> None:
|
||||
expected_message = "sbansal1999 unassigned [issue #9](https://github.com/sbansal1999/testing-gh/issues/9) (assigned to tester987654):\n\n~~~ quote\nSome Random Description about which I know nothing\n~~~"
|
||||
expected_message = "sbansal1999 unassigned [issue #9](https://github.com/sbansal1999/testing-gh/issues/9) (assigned to tester987654)."
|
||||
expected_topic = "testing-gh / issue #9 idk man"
|
||||
self.check_webhook("issues__unassigned", expected_topic, expected_message)
|
||||
|
||||
def test_issue_unassigned_with_custom_topic_in_url(self) -> None:
|
||||
self.url = self.build_webhook_url(topic="notifications")
|
||||
expected_topic = "notifications"
|
||||
expected_message = "sbansal1999 unassigned [issue #9 idk man](https://github.com/sbansal1999/testing-gh/issues/9) (assigned to tester987654):\n\n~~~ quote\nSome Random Description about which I know nothing\n~~~"
|
||||
expected_message = "sbansal1999 unassigned [issue #9 idk man](https://github.com/sbansal1999/testing-gh/issues/9) (assigned to tester987654)."
|
||||
self.check_webhook("issues__unassigned", expected_topic, expected_message)
|
||||
|
||||
def test_membership_msg(self) -> None:
|
||||
|
||||
Reference in New Issue
Block a user