integrations: Refine Gitea example screenshot.

This commit is contained in:
Niloth P 2024-11-18 20:00:11 +05:30 committed by Tim Abbott
parent e1f256c905
commit 5de2a7115c
3 changed files with 7 additions and 7 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB

After

Width:  |  Height:  |  Size: 43 KiB

View File

@ -5,7 +5,7 @@
"pull_request": { "pull_request": {
"id": 1905, "id": 1905,
"url": "https://try.gitea.io/kostekIV/test/pulls/4", "url": "https://try.gitea.io/kostekIV/test/pulls/4",
"number": 4, "number": 1905,
"user": { "user": {
"id": 21818, "id": 21818,
"login": "kostekIV", "login": "kostekIV",
@ -18,7 +18,7 @@
"created": "2019-11-15T19:17:02Z", "created": "2019-11-15T19:17:02Z",
"username": "kostekIV" "username": "kostekIV"
}, },
"title": "New pr", "title": "Fix remove-op on reaction event",
"body": "Body", "body": "Body",
"labels": [], "labels": [],
"milestone": null, "milestone": null,
@ -47,7 +47,7 @@
}, },
"base": { "base": {
"label": "master", "label": "master",
"ref": "master", "ref": "main",
"sha": "1d40c3be7919f066f9158eaaaecaf696b3e22886", "sha": "1d40c3be7919f066f9158eaaaecaf696b3e22886",
"repo_id": 14576, "repo_id": 14576,
"repo": { "repo": {
@ -110,7 +110,7 @@
}, },
"head": { "head": {
"label": "test-branch", "label": "test-branch",
"ref": "test-branch", "ref": "reaction-metadata",
"sha": "01efc1fe09d4fba25397a386a6c623fd12eadd79", "sha": "01efc1fe09d4fba25397a386a6c623fd12eadd79",
"repo_id": 14576, "repo_id": 14576,
"repo": { "repo": {
@ -191,7 +191,7 @@
"created": "2019-11-15T19:17:02Z", "created": "2019-11-15T19:17:02Z",
"username": "kostekIV" "username": "kostekIV"
}, },
"name": "test", "name": "zulip-terminal",
"full_name": "kostekIV/test", "full_name": "kostekIV/test",
"description": "", "description": "",
"empty": false, "empty": false,

View File

@ -30,8 +30,8 @@ class GiteaHookTests(WebhookTestCase):
self.check_webhook("pull_request__opened", expected_topic_name, expected_message) self.check_webhook("pull_request__opened", expected_topic_name, expected_message)
def test_pull_request_merged(self) -> None: def test_pull_request_merged(self) -> None:
expected_topic_name = "test / PR #1905 New pr" expected_topic_name = "zulip-terminal / PR #1905 Fix remove-op on reaction event"
expected_message = """kostekIV merged [PR #4](https://try.gitea.io/kostekIV/test/pulls/4) from `test-branch` to `master`.""" expected_message = """kostekIV merged [PR #1905](https://try.gitea.io/kostekIV/test/pulls/4) from `reaction-metadata` to `main`."""
self.check_webhook("pull_request__merged", expected_topic_name, expected_message) self.check_webhook("pull_request__merged", expected_topic_name, expected_message)
def test_pull_request_edited(self) -> None: def test_pull_request_edited(self) -> None: