github: Include old issue number in transfer message for new repo.

This commit updates the GitHub webhook integration to include the
old issue number in the transfer message sent for the new repository,
alongside the old repository's full name.
This commit is contained in:
Aditya Kumar Kasaudhan
2025-02-27 13:33:41 +05:30
committed by Tim Abbott
parent f9107adaa4
commit 18d83534ff
2 changed files with 4 additions and 2 deletions

View File

@@ -236,7 +236,7 @@ class GitHubWebhookTest(WebhookTestCase):
)
def test_issue_transfer_opened_message(self) -> None:
expected_message = "[Issue #4 Fixture collection](https://github.com/CrisisCollab/admin-frontend-mvp/issues/4) was transferred from CrisisCollab/TestWebhook."
expected_message = "[Issue #4 Fixture collection](https://github.com/CrisisCollab/admin-frontend-mvp/issues/4) was transferred from [CrisisCollab/TestWebhook#4](https://github.com/CrisisCollab/TestWebhook/issues/4)."
expected_topic_name = "admin-frontend-mvp / issue #4 Fixture collection"
self.check_webhook(
"issues__opened_via_transfer",