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:
sbansal1999
2023-04-22 09:34:28 +05:30
committed by Tim Abbott
parent 85689a5343
commit e15df084ad
2 changed files with 5 additions and 3 deletions

View File

@@ -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: