integration: Move assignee message to the end for git integrations.

Previously, the assignee message would stick around in the middle of the
event message. This doesn't look as good as if we put it to the end of
the event message. These changes does just that and move the assignee
messages towards the end of the event message to make it look better
and cleaner for the readers.
This commit is contained in:
Joelute
2023-03-28 14:25:22 -04:00
committed by Tim Abbott
parent d564025d6a
commit 4dc85dddc1
5 changed files with 15 additions and 15 deletions

View File

@@ -51,7 +51,7 @@ class GiteaHookTests(WebhookTestCase):
def test_pull_request_assigned(self) -> None:
expected_topic = "test / PR #1906 test 2"
expected_message = """kostekIV assigned [PR #5](https://try.gitea.io/kostekIV/test/pulls/5) (assigned to kostekIV) from `d` to `master`."""
expected_message = """kostekIV assigned [PR #5](https://try.gitea.io/kostekIV/test/pulls/5) from `d` to `master` (assigned to kostekIV)."""
self.check_webhook("pull_request__assigned", expected_topic, expected_message)
def test_issues_opened(self) -> None: