mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
integrations: Use new function in Github releases.
Use get_release_event_message from webhooks/git.py to format release events using the newly implemented release message template. Tweaked by tabbott to handle name=None. Builds on #14746. Proposed in #14934.
This commit is contained in:
@@ -206,7 +206,7 @@ class GithubWebhookTest(WebhookTestCase):
|
||||
self.send_and_test_stream_message('team_add', self.EXPECTED_TOPIC_REPO_EVENTS, expected_message)
|
||||
|
||||
def test_release_msg(self) -> None:
|
||||
expected_message = "baxterthehacker published [release for tag 0.0.1](https://github.com/baxterthehacker/public-repo/releases/tag/0.0.1)."
|
||||
expected_message = "baxterthehacker published release [0.0.1](https://github.com/baxterthehacker/public-repo/releases/tag/0.0.1) for tag 0.0.1."
|
||||
self.send_and_test_stream_message('release', self.EXPECTED_TOPIC_REPO_EVENTS, expected_message)
|
||||
|
||||
def test_page_build_msg(self) -> None:
|
||||
|
||||
Reference in New Issue
Block a user