Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

webhooks/github: Improve coverage for pull-request events.

Pritesh Shettydde9ec247568
diff --git a/zerver/lib/webhooks/git.py b/zerver/lib/webhooks/git.py
index 2a327ca87ef..3f94c362aa1 100644
--- a/zerver/lib/webhooks/git.py
+++ b/zerver/lib/webhooks/git.py
@@ -213,10 +213,15 @@ def get_pull_request_event_message(
reviewer: str | None = None,
type: str = "PR",
title: str | None = None,
+ suffix: str | None = None,
) -> str:
action_messages = {
"approval": "added their approval for",
"unapproval": "removed their approval for",
+ "enqueued": "added",
+ "dequeued": "removed",
+ "milestoned": "linked",
+ "demilestoned": "unlinked",
}
kwargs = {
@@ -256,6 +261,9 @@ def get_pull_request_event_message(
if assignees or assignee or reviewer:
main_message = f"{main_message} {assignee_info}"
+ if suffix:
+ main_message = f"{main_message} {suffix}"
+
punctuation = ":" if message else "."
if (
assignees
diff --git a/zerver/webhooks/github/fixtures/pull_request__converted_to_draft.json b/zerver/webhooks/github/fixtures/pull_request__converted_to_draft.json
new file mode 100644
index 00000000000..b8169650c2b
--- /dev/null
+++ b/zerver/webhooks/github/fixtures/pull_request__converted_to_draft.json
@@ -0,0 +1,495 @@
+{
+ "action": "converted_to_draft",
+ "number": 1,
+ "pull_request": {
+ "url": "https://api.github.com/repos/soheil-star01/soheil-star01/pulls/1",
+ "id": 2427231083,
+ "node_id": "PR_kwDOJqrH6c6QrJtr",
+ "html_url": "https://github.com/soheil-star01/soheil-star01/pull/1",
+ "diff_url": "https://github.com/soheil-star01/soheil-star01/pull/1.diff",
+ "patch_url": "https://github.com/soheil-star01/soheil-star01/pull/1.patch",
+ "issue_url": "https://api.github.com/repos/soheil-star01/soheil-star01/issues/1",
+ "number": 1,
+ "state": "open",
+ "locked": false,
+ "title": "test webhook",
+ "user": {
+ "login": "soheil-star01",
+ "id": 75124326,
+ "node_id": "MDQ6VXNlcjc1MTI0MzI2",
+ "avatar_url": "https://avatars.githubusercontent.com/u/75124326?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/soheil-star01",
+ "html_url": "https://github.com/soheil-star01",
+ "followers_url": "https://api.github.com/users/soheil-star01/followers",
+ "following_url": "https://api.github.com/users/soheil-star01/following{/other_user}",
+ "gists_url": "https://api.github.com/users/soheil-star01/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/soheil-star01/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/soheil-star01/subscriptions",
+ "organizations_url": "https://api.github.com/users/soheil-star01/orgs",
+ "repos_url": "https://api.github.com/users/soheil-star01/repos",
+ "events_url": "https://api.github.com/users/soheil-star01/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/soheil-star01/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "body": null,
+ "created_at": "2025-03-29T20:08:40Z",
+ "updated_at": "2025-03-29T20:25:26Z",
+ "closed_at": null,
+ "merged_at": null,
+ "merge_commit_sha": "4e0ff7451e6e06d8ca9d7a7de7ad5d7135dd5490",
+ "assignee": null,
+ "assignees": [],
+ "requested_reviewers": [],
+ "requested_teams": [],
+ "labels": [],
+ "milestone": null,
+ "draft": true,
+ "commits_url": "https://api.github.com/repos/soheil-star01/soheil-star01/pulls/1/commits",
+ "review_comments_url": "https://api.github.com/repos/soheil-star01/soheil-star01/pulls/1/comments",
+ "review_comment_url": "https://api.github.com/repos/soheil-star01/soheil-star01/pulls/comments{/number}",
+ "comments_url": "https://api.github.com/repos/soheil-star01/soheil-star01/issues/1/comments",
+ "statuses_url": "https://api.github.com/repos/soheil-star01/soheil-star01/statuses/87d7bbbd605ee812b005793c01b0c567dc732bdc",
+ "head": {
+ "label": "soheil-star01:fix/test_webhook",
+ "ref": "fix/test_webhook",
+ "sha": "87d7bbbd605ee812b005793c01b0c567dc732bdc",
+ "user": {
+ "login": "soheil-star01",
+ "id": 75124326,
+ "node_id": "MDQ6VXNlcjc1MTI0MzI2",
+ "avatar_url": "https://avatars.githubusercontent.com/u/75124326?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/soheil-star01",
+ "html_url": "https://github.com/soheil-star01",
+ "followers_url": "https://api.github.com/users/soheil-star01/followers",
+ "following_url": "https://api.github.com/users/soheil-star01/following{/other_user}",
+ "gists_url": "https://api.github.com/users/soheil-star01/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/soheil-star01/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/soheil-star01/subscriptions",
+ "organizations_url": "https://api.github.com/users/soheil-star01/orgs",
+ "repos_url": "https://api.github.com/users/soheil-star01/repos",
+ "events_url": "https://api.github.com/users/soheil-star01/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/soheil-star01/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "repo": {
+ "id": 648726505,
+ "node_id": "R_kgDOJqrH6Q",
+ "name": "soheil-star01",
+ "full_name": "soheil-star01/soheil-star01",
+ "private": false,
+ "owner": {
+ "login": "soheil-star01",
+ "id": 75124326,
+ "node_id": "MDQ6VXNlcjc1MTI0MzI2",
+ "avatar_url": "https://avatars.githubusercontent.com/u/75124326?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/soheil-star01",
+ "html_url": "https://github.com/soheil-star01",
+ "followers_url": "https://api.github.com/users/soheil-star01/followers",
+ "following_url": "https://api.github.com/users/soheil-star01/following{/other_user}",
+ "gists_url": "https://api.github.com/users/soheil-star01/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/soheil-star01/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/soheil-star01/subscriptions",
+ "organizations_url": "https://api.github.com/users/soheil-star01/orgs",
+ "repos_url": "https://api.github.com/users/soheil-star01/repos",
+ "events_url": "https://api.github.com/users/soheil-star01/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/soheil-star01/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "html_url": "https://github.com/soheil-star01/soheil-star01",
+ "description": null,
+ "fork": false,
+ "url": "https://api.github.com/repos/soheil-star01/soheil-star01",
+ "forks_url": "https://api.github.com/repos/soheil-star01/soheil-star01/forks",
+ "keys_url": "https://api.github.com/repos/soheil-star01/soheil-star01/keys{/key_id}",
+ "collaborators_url": "https://api.github.com/repos/soheil-star01/soheil-star01/collaborators{/collaborator}",
+ "teams_url": "https://api.github.com/repos/soheil-star01/soheil-star01/teams",
+ "hooks_url": "https://api.github.com/repos/soheil-star01/soheil-star01/hooks",
+ "issue_events_url": "https://api.github.com/repos/soheil-star01/soheil-star01/issues/events{/number}",
+ "events_url": "https://api.github.com/repos/soheil-star01/soheil-star01/events",
+ "assignees_url": "https://api.github.com/repos/soheil-star01/soheil-star01/assignees{/user}",
+ "branches_url": "https://api.github.com/repos/soheil-star01/soheil-star01/branches{/branch}",
+ "tags_url": "https://api.github.com/repos/soheil-star01/soheil-star01/tags",
+ "blobs_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/blobs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/tags{/sha}",
+ "git_refs_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/refs{/sha}",
+ "trees_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/trees{/sha}",
+ "statuses_url": "https://api.github.com/repos/soheil-star01/soheil-star01/statuses/{sha}",
+ "languages_url": "https://api.github.com/repos/soheil-star01/soheil-star01/languages",
+ "stargazers_url": "https://api.github.com/repos/soheil-star01/soheil-star01/stargazers",
+ "contributors_url": "https://api.github.com/repos/soheil-star01/soheil-star01/contributors",
+ "subscribers_url": "https://api.github.com/repos/soheil-star01/soheil-star01/subscribers",
+ "subscription_url": "https://api.github.com/repos/soheil-star01/soheil-star01/subscription",
+ "commits_url": "https://api.github.com/repos/soheil-star01/soheil-star01/commits{/sha}",
+ "git_commits_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/commits{/sha}",
+ "comments_url": "https://api.github.com/repos/soheil-star01/soheil-star01/comments{/number}",
+ "issue_comment_url": "https://api.github.com/repos/soheil-star01/soheil-star01/issues/comments{/number}",
+ "contents_url": "https://api.github.com/repos/soheil-star01/soheil-star01/contents/{+path}",
+ "compare_url": "https://api.github.com/repos/soheil-star01/soheil-star01/compare/{base}...{head}",
+ "merges_url": "https://api.github.com/repos/soheil-star01/soheil-star01/merges",
+ "archive_url": "https://api.github.com/repos/soheil-star01/soheil-star01/{archive_format}{/ref}",
+ "downloads_url": "https://api.github.com/repos/soheil-star01/soheil-star01/downloads",
+ "issues_url": "https://api.github.com/repos/soheil-star01/soheil-star01/issues{/number}",
+ "pulls_url": "https://api.github.com/repos/soheil-star01/soheil-star01/pulls{/number}",
+ "milestones_url": "https://api.github.com/repos/soheil-star01/soheil-star01/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/soheil-star01/soheil-star01/notifications{?since,all,participating}",
+ "labels_url": "https://api.github.com/repos/soheil-star01/soheil-star01/labels{/name}",
+ "releases_url": "https://api.github.com/repos/soheil-star01/soheil-star01/releases{/id}",
+ "deployments_url": "https://api.github.com/repos/soheil-star01/soheil-star01/deployments",
+ "created_at": "2023-06-02T16:49:34Z",
+ "updated_at": "2023-06-02T16:49:35Z",
+ "pushed_at": "2025-03-29T20:08:21Z",
+ "git_url": "git://github.com/soheil-star01/soheil-star01.git",
+ "ssh_url": "[email protected]:soheil-star01/soheil-star01.git",
+ "clone_url": "https://github.com/soheil-star01/soheil-star01.git",
+ "svn_url": "https://github.com/soheil-star01/soheil-star01",
+ "homepage": null,
+ "size": 2,
+ "stargazers_count": 0,
+ "watchers_count": 0,
+ "language": null,
+ "has_issues": true,
+ "has_projects": true,
+ "has_downloads": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_discussions": false,
+ "forks_count": 0,
+ "mirror_url": null,
+ "archived": false,
+ "disabled": false,
+ "open_issues_count": 1,
+ "license": null,
+ "allow_forking": true,
+ "is_template": false,
+ "web_commit_signoff_required": false,
+ "topics": [],
+ "visibility": "public",
+ "forks": 0,
+ "open_issues": 1,
+ "watchers": 0,
+ "default_branch": "main",
+ "allow_squash_merge": true,
+ "allow_merge_commit": true,
+ "allow_rebase_merge": true,
+ "allow_auto_merge": false,
+ "delete_branch_on_merge": false,
+ "allow_update_branch": false,
+ "use_squash_pr_title_as_default": false,
+ "squash_merge_commit_message": "COMMIT_MESSAGES",
+ "squash_merge_commit_title": "COMMIT_OR_PR_TITLE",
+ "merge_commit_message": "PR_TITLE",
+ "merge_commit_title": "MERGE_MESSAGE"
+ }
+ },
+ "base": {
+ "label": "soheil-star01:main",
+ "ref": "main",
+ "sha": "e01f5c370f5a49b296d95ad78a31fa4f9b58b17e",
+ "user": {
+ "login": "soheil-star01",
+ "id": 75124326,
+ "node_id": "MDQ6VXNlcjc1MTI0MzI2",
+ "avatar_url": "https://avatars.githubusercontent.com/u/75124326?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/soheil-star01",
+ "html_url": "https://github.com/soheil-star01",
+ "followers_url": "https://api.github.com/users/soheil-star01/followers",
+ "following_url": "https://api.github.com/users/soheil-star01/following{/other_user}",
+ "gists_url": "https://api.github.com/users/soheil-star01/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/soheil-star01/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/soheil-star01/subscriptions",
+ "organizations_url": "https://api.github.com/users/soheil-star01/orgs",
+ "repos_url": "https://api.github.com/users/soheil-star01/repos",
+ "events_url": "https://api.github.com/users/soheil-star01/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/soheil-star01/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "repo": {
+ "id": 648726505,
+ "node_id": "R_kgDOJqrH6Q",
+ "name": "soheil-star01",
+ "full_name": "soheil-star01/soheil-star01",
+ "private": false,
+ "owner": {
+ "login": "soheil-star01",
+ "id": 75124326,
+ "node_id": "MDQ6VXNlcjc1MTI0MzI2",
+ "avatar_url": "https://avatars.githubusercontent.com/u/75124326?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/soheil-star01",
+ "html_url": "https://github.com/soheil-star01",
+ "followers_url": "https://api.github.com/users/soheil-star01/followers",
+ "following_url": "https://api.github.com/users/soheil-star01/following{/other_user}",
+ "gists_url": "https://api.github.com/users/soheil-star01/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/soheil-star01/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/soheil-star01/subscriptions",
+ "organizations_url": "https://api.github.com/users/soheil-star01/orgs",
+ "repos_url": "https://api.github.com/users/soheil-star01/repos",
+ "events_url": "https://api.github.com/users/soheil-star01/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/soheil-star01/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "html_url": "https://github.com/soheil-star01/soheil-star01",
+ "description": null,
+ "fork": false,
+ "url": "https://api.github.com/repos/soheil-star01/soheil-star01",
+ "forks_url": "https://api.github.com/repos/soheil-star01/soheil-star01/forks",
+ "keys_url": "https://api.github.com/repos/soheil-star01/soheil-star01/keys{/key_id}",
+ "collaborators_url": "https://api.github.com/repos/soheil-star01/soheil-star01/collaborators{/collaborator}",
+ "teams_url": "https://api.github.com/repos/soheil-star01/soheil-star01/teams",
+ "hooks_url": "https://api.github.com/repos/soheil-star01/soheil-star01/hooks",
+ "issue_events_url": "https://api.github.com/repos/soheil-star01/soheil-star01/issues/events{/number}",
+ "events_url": "https://api.github.com/repos/soheil-star01/soheil-star01/events",
+ "assignees_url": "https://api.github.com/repos/soheil-star01/soheil-star01/assignees{/user}",
+ "branches_url": "https://api.github.com/repos/soheil-star01/soheil-star01/branches{/branch}",
+ "tags_url": "https://api.github.com/repos/soheil-star01/soheil-star01/tags",
+ "blobs_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/blobs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/tags{/sha}",
+ "git_refs_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/refs{/sha}",
+ "trees_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/trees{/sha}",
+ "statuses_url": "https://api.github.com/repos/soheil-star01/soheil-star01/statuses/{sha}",
+ "languages_url": "https://api.github.com/repos/soheil-star01/soheil-star01/languages",
+ "stargazers_url": "https://api.github.com/repos/soheil-star01/soheil-star01/stargazers",
+ "contributors_url": "https://api.github.com/repos/soheil-star01/soheil-star01/contributors",
+ "subscribers_url": "https://api.github.com/repos/soheil-star01/soheil-star01/subscribers",
+ "subscription_url": "https://api.github.com/repos/soheil-star01/soheil-star01/subscription",
+ "commits_url": "https://api.github.com/repos/soheil-star01/soheil-star01/commits{/sha}",
+ "git_commits_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/commits{/sha}",
+ "comments_url": "https://api.github.com/repos/soheil-star01/soheil-star01/comments{/number}",
+ "issue_comment_url": "https://api.github.com/repos/soheil-star01/soheil-star01/issues/comments{/number}",
+ "contents_url": "https://api.github.com/repos/soheil-star01/soheil-star01/contents/{+path}",
+ "compare_url": "https://api.github.com/repos/soheil-star01/soheil-star01/compare/{base}...{head}",
+ "merges_url": "https://api.github.com/repos/soheil-star01/soheil-star01/merges",
+ "archive_url": "https://api.github.com/repos/soheil-star01/soheil-star01/{archive_format}{/ref}",
+ "downloads_url": "https://api.github.com/repos/soheil-star01/soheil-star01/downloads",
+ "issues_url": "https://api.github.com/repos/soheil-star01/soheil-star01/issues{/number}",
+ "pulls_url": "https://api.github.com/repos/soheil-star01/soheil-star01/pulls{/number}",
+ "milestones_url": "https://api.github.com/repos/soheil-star01/soheil-star01/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/soheil-star01/soheil-star01/notifications{?since,all,participating}",
+ "labels_url": "https://api.github.com/repos/soheil-star01/soheil-star01/labels{/name}",
+ "releases_url": "https://api.github.com/repos/soheil-star01/soheil-star01/releases{/id}",
+ "deployments_url": "https://api.github.com/repos/soheil-star01/soheil-star01/deployments",
+ "created_at": "2023-06-02T16:49:34Z",
+ "updated_at": "2023-06-02T16:49:35Z",
+ "pushed_at": "2025-03-29T20:08:21Z",
+ "git_url": "git://github.com/soheil-star01/soheil-star01.git",
+ "ssh_url": "[email protected]:soheil-star01/soheil-star01.git",
+ "clone_url": "https://github.com/soheil-star01/soheil-star01.git",
+ "svn_url": "https://github.com/soheil-star01/soheil-star01",
+ "homepage": null,
+ "size": 2,
+ "stargazers_count": 0,
+ "watchers_count": 0,
+ "language": null,
+ "has_issues": true,
+ "has_projects": true,
+ "has_downloads": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_discussions": false,
+ "forks_count": 0,
+ "mirror_url": null,
+ "archived": false,
+ "disabled": false,
+ "open_issues_count": 1,
+ "license": null,
+ "allow_forking": true,
+ "is_template": false,
+ "web_commit_signoff_required": false,
+ "topics": [],
+ "visibility": "public",
+ "forks": 0,
+ "open_issues": 1,
+ "watchers": 0,
+ "default_branch": "main",
+ "allow_squash_merge": true,
+ "allow_merge_commit": true,
+ "allow_rebase_merge": true,
+ "allow_auto_merge": false,
+ "delete_branch_on_merge": false,
+ "allow_update_branch": false,
+ "use_squash_pr_title_as_default": false,
+ "squash_merge_commit_message": "COMMIT_MESSAGES",
+ "squash_merge_commit_title": "COMMIT_OR_PR_TITLE",
+ "merge_commit_message": "PR_TITLE",
+ "merge_commit_title": "MERGE_MESSAGE"
+ }
+ },
+ "_links": {
+ "self": {
+ "href": "https://api.github.com/repos/soheil-star01/soheil-star01/pulls/1"
+ },
+ "html": {
+ "href": "https://github.com/soheil-star01/soheil-star01/pull/1"
+ },
+ "issue": {
+ "href": "https://api.github.com/repos/soheil-star01/soheil-star01/issues/1"
+ },
+ "comments": {
+ "href": "https://api.github.com/repos/soheil-star01/soheil-star01/issues/1/comments"
+ },
+ "review_comments": {
+ "href": "https://api.github.com/repos/soheil-star01/soheil-star01/pulls/1/comments"
+ },
+ "review_comment": {
+ "href": "https://api.github.com/repos/soheil-star01/soheil-star01/pulls/comments{/number}"
+ },
+ "commits": {
+ "href": "https://api.github.com/repos/soheil-star01/soheil-star01/pulls/1/commits"
+ },
+ "statuses": {
+ "href": "https://api.github.com/repos/soheil-star01/soheil-star01/statuses/87d7bbbd605ee812b005793c01b0c567dc732bdc"
+ }
+ },
+ "author_association": "OWNER",
+ "auto_merge": null,
+ "active_lock_reason": null,
+ "merged": false,
+ "mergeable": true,
+ "rebaseable": true,
+ "mergeable_state": "clean",
+ "merged_by": null,
+ "comments": 0,
+ "review_comments": 0,
+ "maintainer_can_modify": false,
+ "commits": 1,
+ "additions": 1,
+ "deletions": 1,
+ "changed_files": 1
+ },
+ "repository": {
+ "id": 648726505,
+ "node_id": "R_kgDOJqrH6Q",
+ "name": "soheil-star01",
+ "full_name": "soheil-star01/soheil-star01",
+ "private": false,
+ "owner": {
+ "login": "soheil-star01",
+ "id": 75124326,
+ "node_id": "MDQ6VXNlcjc1MTI0MzI2",
+ "avatar_url": "https://avatars.githubusercontent.com/u/75124326?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/soheil-star01",
+ "html_url": "https://github.com/soheil-star01",
+ "followers_url": "https://api.github.com/users/soheil-star01/followers",
+ "following_url": "https://api.github.com/users/soheil-star01/following{/other_user}",
+ "gists_url": "https://api.github.com/users/soheil-star01/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/soheil-star01/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/soheil-star01/subscriptions",
+ "organizations_url": "https://api.github.com/users/soheil-star01/orgs",
+ "repos_url": "https://api.github.com/users/soheil-star01/repos",
+ "events_url": "https://api.github.com/users/soheil-star01/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/soheil-star01/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "html_url": "https://github.com/soheil-star01/soheil-star01",
+ "description": null,
+ "fork": false,
+ "url": "https://api.github.com/repos/soheil-star01/soheil-star01",
+ "forks_url": "https://api.github.com/repos/soheil-star01/soheil-star01/forks",
+ "keys_url": "https://api.github.com/repos/soheil-star01/soheil-star01/keys{/key_id}",
+ "collaborators_url": "https://api.github.com/repos/soheil-star01/soheil-star01/collaborators{/collaborator}",
+ "teams_url": "https://api.github.com/repos/soheil-star01/soheil-star01/teams",
+ "hooks_url": "https://api.github.com/repos/soheil-star01/soheil-star01/hooks",
+ "issue_events_url": "https://api.github.com/repos/soheil-star01/soheil-star01/issues/events{/number}",
+ "events_url": "https://api.github.com/repos/soheil-star01/soheil-star01/events",
+ "assignees_url": "https://api.github.com/repos/soheil-star01/soheil-star01/assignees{/user}",
+ "branches_url": "https://api.github.com/repos/soheil-star01/soheil-star01/branches{/branch}",
+ "tags_url": "https://api.github.com/repos/soheil-star01/soheil-star01/tags",
+ "blobs_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/blobs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/tags{/sha}",
+ "git_refs_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/refs{/sha}",
+ "trees_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/trees{/sha}",
+ "statuses_url": "https://api.github.com/repos/soheil-star01/soheil-star01/statuses/{sha}",
+ "languages_url": "https://api.github.com/repos/soheil-star01/soheil-star01/languages",
+ "stargazers_url": "https://api.github.com/repos/soheil-star01/soheil-star01/stargazers",
+ "contributors_url": "https://api.github.com/repos/soheil-star01/soheil-star01/contributors",
+ "subscribers_url": "https://api.github.com/repos/soheil-star01/soheil-star01/subscribers",
+ "subscription_url": "https://api.github.com/repos/soheil-star01/soheil-star01/subscription",
+ "commits_url": "https://api.github.com/repos/soheil-star01/soheil-star01/commits{/sha}",
+ "git_commits_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/commits{/sha}",
+ "comments_url": "https://api.github.com/repos/soheil-star01/soheil-star01/comments{/number}",
+ "issue_comment_url": "https://api.github.com/repos/soheil-star01/soheil-star01/issues/comments{/number}",
+ "contents_url": "https://api.github.com/repos/soheil-star01/soheil-star01/contents/{+path}",
+ "compare_url": "https://api.github.com/repos/soheil-star01/soheil-star01/compare/{base}...{head}",
+ "merges_url": "https://api.github.com/repos/soheil-star01/soheil-star01/merges",
+ "archive_url": "https://api.github.com/repos/soheil-star01/soheil-star01/{archive_format}{/ref}",
+ "downloads_url": "https://api.github.com/repos/soheil-star01/soheil-star01/downloads",
+ "issues_url": "https://api.github.com/repos/soheil-star01/soheil-star01/issues{/number}",
+ "pulls_url": "https://api.github.com/repos/soheil-star01/soheil-star01/pulls{/number}",
+ "milestones_url": "https://api.github.com/repos/soheil-star01/soheil-star01/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/soheil-star01/soheil-star01/notifications{?since,all,participating}",
+ "labels_url": "https://api.github.com/repos/soheil-star01/soheil-star01/labels{/name}",
+ "releases_url": "https://api.github.com/repos/soheil-star01/soheil-star01/releases{/id}",
+ "deployments_url": "https://api.github.com/repos/soheil-star01/soheil-star01/deployments",
+ "created_at": "2023-06-02T16:49:34Z",
+ "updated_at": "2023-06-02T16:49:35Z",
+ "pushed_at": "2025-03-29T20:08:21Z",
+ "git_url": "git://github.com/soheil-star01/soheil-star01.git",
+ "ssh_url": "[email protected]:soheil-star01/soheil-star01.git",
+ "clone_url": "https://github.com/soheil-star01/soheil-star01.git",
+ "svn_url": "https://github.com/soheil-star01/soheil-star01",
+ "homepage": null,
+ "size": 2,
+ "stargazers_count": 0,
+ "watchers_count": 0,
+ "language": null,
+ "has_issues": true,
+ "has_projects": true,
+ "has_downloads": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_discussions": false,
+ "forks_count": 0,
+ "mirror_url": null,
+ "archived": false,
+ "disabled": false,
+ "open_issues_count": 1,
+ "license": null,
+ "allow_forking": true,
+ "is_template": false,
+ "web_commit_signoff_required": false,
+ "topics": [],
+ "visibility": "public",
+ "forks": 0,
+ "open_issues": 1,
+ "watchers": 0,
+ "default_branch": "main"
+ },
+ "sender": {
+ "login": "soheil-star01",
+ "id": 75124326,
+ "node_id": "MDQ6VXNlcjc1MTI0MzI2",
+ "avatar_url": "https://avatars.githubusercontent.com/u/75124326?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/soheil-star01",
+ "html_url": "https://github.com/soheil-star01",
+ "followers_url": "https://api.github.com/users/soheil-star01/followers",
+ "following_url": "https://api.github.com/users/soheil-star01/following{/other_user}",
+ "gists_url": "https://api.github.com/users/soheil-star01/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/soheil-star01/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/soheil-star01/subscriptions",
+ "organizations_url": "https://api.github.com/users/soheil-star01/orgs",
+ "repos_url": "https://api.github.com/users/soheil-star01/repos",
+ "events_url": "https://api.github.com/users/soheil-star01/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/soheil-star01/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ }
+}
diff --git a/zerver/webhooks/github/fixtures/pull_request__demilestoned.json b/zerver/webhooks/github/fixtures/pull_request__demilestoned.json
new file mode 100644
index 00000000000..c6e38128506
--- /dev/null
+++ b/zerver/webhooks/github/fixtures/pull_request__demilestoned.json
@@ -0,0 +1,533 @@
+{
+ "action": "demilestoned",
+ "number": 1,
+ "pull_request": {
+ "url": "https://api.github.com/repos/soheil-star01/soheil-star01/pulls/1",
+ "id": 2427231083,
+ "node_id": "PR_kwDOJqrH6c6QrJtr",
+ "html_url": "https://github.com/soheil-star01/soheil-star01/pull/1",
+ "diff_url": "https://github.com/soheil-star01/soheil-star01/pull/1.diff",
+ "patch_url": "https://github.com/soheil-star01/soheil-star01/pull/1.patch",
+ "issue_url": "https://api.github.com/repos/soheil-star01/soheil-star01/issues/1",
+ "number": 1,
+ "state": "open",
+ "locked": false,
+ "title": "test webhook",
+ "user": {
+ "login": "soheil-star01",
+ "id": 75124326,
+ "node_id": "MDQ6VXNlcjc1MTI0MzI2",
+ "avatar_url": "https://avatars.githubusercontent.com/u/75124326?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/soheil-star01",
+ "html_url": "https://github.com/soheil-star01",
+ "followers_url": "https://api.github.com/users/soheil-star01/followers",
+ "following_url": "https://api.github.com/users/soheil-star01/following{/other_user}",
+ "gists_url": "https://api.github.com/users/soheil-star01/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/soheil-star01/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/soheil-star01/subscriptions",
+ "organizations_url": "https://api.github.com/users/soheil-star01/orgs",
+ "repos_url": "https://api.github.com/users/soheil-star01/repos",
+ "events_url": "https://api.github.com/users/soheil-star01/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/soheil-star01/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "body": null,
+ "created_at": "2025-03-29T20:08:40Z",
+ "updated_at": "2025-03-29T20:17:34Z",
+ "closed_at": null,
+ "merged_at": null,
+ "merge_commit_sha": "4e0ff7451e6e06d8ca9d7a7de7ad5d7135dd5490",
+ "assignee": null,
+ "assignees": [],
+ "requested_reviewers": [],
+ "requested_teams": [],
+ "labels": [],
+ "milestone": null,
+ "draft": false,
+ "commits_url": "https://api.github.com/repos/soheil-star01/soheil-star01/pulls/1/commits",
+ "review_comments_url": "https://api.github.com/repos/soheil-star01/soheil-star01/pulls/1/comments",
+ "review_comment_url": "https://api.github.com/repos/soheil-star01/soheil-star01/pulls/comments{/number}",
+ "comments_url": "https://api.github.com/repos/soheil-star01/soheil-star01/issues/1/comments",
+ "statuses_url": "https://api.github.com/repos/soheil-star01/soheil-star01/statuses/87d7bbbd605ee812b005793c01b0c567dc732bdc",
+ "head": {
+ "label": "soheil-star01:fix/test_webhook",
+ "ref": "fix/test_webhook",
+ "sha": "87d7bbbd605ee812b005793c01b0c567dc732bdc",
+ "user": {
+ "login": "soheil-star01",
+ "id": 75124326,
+ "node_id": "MDQ6VXNlcjc1MTI0MzI2",
+ "avatar_url": "https://avatars.githubusercontent.com/u/75124326?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/soheil-star01",
+ "html_url": "https://github.com/soheil-star01",
+ "followers_url": "https://api.github.com/users/soheil-star01/followers",
+ "following_url": "https://api.github.com/users/soheil-star01/following{/other_user}",
+ "gists_url": "https://api.github.com/users/soheil-star01/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/soheil-star01/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/soheil-star01/subscriptions",
+ "organizations_url": "https://api.github.com/users/soheil-star01/orgs",
+ "repos_url": "https://api.github.com/users/soheil-star01/repos",
+ "events_url": "https://api.github.com/users/soheil-star01/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/soheil-star01/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "repo": {
+ "id": 648726505,
+ "node_id": "R_kgDOJqrH6Q",
+ "name": "soheil-star01",
+ "full_name": "soheil-star01/soheil-star01",
+ "private": false,
+ "owner": {
+ "login": "soheil-star01",
+ "id": 75124326,
+ "node_id": "MDQ6VXNlcjc1MTI0MzI2",
+ "avatar_url": "https://avatars.githubusercontent.com/u/75124326?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/soheil-star01",
+ "html_url": "https://github.com/soheil-star01",
+ "followers_url": "https://api.github.com/users/soheil-star01/followers",
+ "following_url": "https://api.github.com/users/soheil-star01/following{/other_user}",
+ "gists_url": "https://api.github.com/users/soheil-star01/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/soheil-star01/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/soheil-star01/subscriptions",
+ "organizations_url": "https://api.github.com/users/soheil-star01/orgs",
+ "repos_url": "https://api.github.com/users/soheil-star01/repos",
+ "events_url": "https://api.github.com/users/soheil-star01/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/soheil-star01/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "html_url": "https://github.com/soheil-star01/soheil-star01",
+ "description": null,
+ "fork": false,
+ "url": "https://api.github.com/repos/soheil-star01/soheil-star01",
+ "forks_url": "https://api.github.com/repos/soheil-star01/soheil-star01/forks",
+ "keys_url": "https://api.github.com/repos/soheil-star01/soheil-star01/keys{/key_id}",
+ "collaborators_url": "https://api.github.com/repos/soheil-star01/soheil-star01/collaborators{/collaborator}",
+ "teams_url": "https://api.github.com/repos/soheil-star01/soheil-star01/teams",
+ "hooks_url": "https://api.github.com/repos/soheil-star01/soheil-star01/hooks",
+ "issue_events_url": "https://api.github.com/repos/soheil-star01/soheil-star01/issues/events{/number}",
+ "events_url": "https://api.github.com/repos/soheil-star01/soheil-star01/events",
+ "assignees_url": "https://api.github.com/repos/soheil-star01/soheil-star01/assignees{/user}",
+ "branches_url": "https://api.github.com/repos/soheil-star01/soheil-star01/branches{/branch}",
+ "tags_url": "https://api.github.com/repos/soheil-star01/soheil-star01/tags",
+ "blobs_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/blobs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/tags{/sha}",
+ "git_refs_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/refs{/sha}",
+ "trees_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/trees{/sha}",
+ "statuses_url": "https://api.github.com/repos/soheil-star01/soheil-star01/statuses/{sha}",
+ "languages_url": "https://api.github.com/repos/soheil-star01/soheil-star01/languages",
+ "stargazers_url": "https://api.github.com/repos/soheil-star01/soheil-star01/stargazers",
+ "contributors_url": "https://api.github.com/repos/soheil-star01/soheil-star01/contributors",
+ "subscribers_url": "https://api.github.com/repos/soheil-star01/soheil-star01/subscribers",
+ "subscription_url": "https://api.github.com/repos/soheil-star01/soheil-star01/subscription",
+ "commits_url": "https://api.github.com/repos/soheil-star01/soheil-star01/commits{/sha}",
+ "git_commits_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/commits{/sha}",
+ "comments_url": "https://api.github.com/repos/soheil-star01/soheil-star01/comments{/number}",
+ "issue_comment_url": "https://api.github.com/repos/soheil-star01/soheil-star01/issues/comments{/number}",
+ "contents_url": "https://api.github.com/repos/soheil-star01/soheil-star01/contents/{+path}",
+ "compare_url": "https://api.github.com/repos/soheil-star01/soheil-star01/compare/{base}...{head}",
+ "merges_url": "https://api.github.com/repos/soheil-star01/soheil-star01/merges",
+ "archive_url": "https://api.github.com/repos/soheil-star01/soheil-star01/{archive_format}{/ref}",
+ "downloads_url": "https://api.github.com/repos/soheil-star01/soheil-star01/downloads",
+ "issues_url": "https://api.github.com/repos/soheil-star01/soheil-star01/issues{/number}",
+ "pulls_url": "https://api.github.com/repos/soheil-star01/soheil-star01/pulls{/number}",
+ "milestones_url": "https://api.github.com/repos/soheil-star01/soheil-star01/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/soheil-star01/soheil-star01/notifications{?since,all,participating}",
+ "labels_url": "https://api.github.com/repos/soheil-star01/soheil-star01/labels{/name}",
+ "releases_url": "https://api.github.com/repos/soheil-star01/soheil-star01/releases{/id}",
+ "deployments_url": "https://api.github.com/repos/soheil-star01/soheil-star01/deployments",
+ "created_at": "2023-06-02T16:49:34Z",
+ "updated_at": "2023-06-02T16:49:35Z",
+ "pushed_at": "2025-03-29T20:08:21Z",
+ "git_url": "git://github.com/soheil-star01/soheil-star01.git",
+ "ssh_url": "[email protected]:soheil-star01/soheil-star01.git",
+ "clone_url": "https://github.com/soheil-star01/soheil-star01.git",
+ "svn_url": "https://github.com/soheil-star01/soheil-star01",
+ "homepage": null,
+ "size": 2,
+ "stargazers_count": 0,
+ "watchers_count": 0,
+ "language": null,
+ "has_issues": true,
+ "has_projects": true,
+ "has_downloads": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_discussions": false,
+ "forks_count": 0,
+ "mirror_url": null,
+ "archived": false,
+ "disabled": false,
+ "open_issues_count": 1,
+ "license": null,
+ "allow_forking": true,
+ "is_template": false,
+ "web_commit_signoff_required": false,
+ "topics": [],
+ "visibility": "public",
+ "forks": 0,
+ "open_issues": 1,
+ "watchers": 0,
+ "default_branch": "main",
+ "allow_squash_merge": true,
+ "allow_merge_commit": true,
+ "allow_rebase_merge": true,
+ "allow_auto_merge": false,
+ "delete_branch_on_merge": false,
+ "allow_update_branch": false,
+ "use_squash_pr_title_as_default": false,
+ "squash_merge_commit_message": "COMMIT_MESSAGES",
+ "squash_merge_commit_title": "COMMIT_OR_PR_TITLE",
+ "merge_commit_message": "PR_TITLE",
+ "merge_commit_title": "MERGE_MESSAGE"
+ }
+ },
+ "base": {
+ "label": "soheil-star01:main",
+ "ref": "main",
+ "sha": "e01f5c370f5a49b296d95ad78a31fa4f9b58b17e",
+ "user": {
+ "login": "soheil-star01",
+ "id": 75124326,
+ "node_id": "MDQ6VXNlcjc1MTI0MzI2",
+ "avatar_url": "https://avatars.githubusercontent.com/u/75124326?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/soheil-star01",
+ "html_url": "https://github.com/soheil-star01",
+ "followers_url": "https://api.github.com/users/soheil-star01/followers",
+ "following_url": "https://api.github.com/users/soheil-star01/following{/other_user}",
+ "gists_url": "https://api.github.com/users/soheil-star01/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/soheil-star01/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/soheil-star01/subscriptions",
+ "organizations_url": "https://api.github.com/users/soheil-star01/orgs",
+ "repos_url": "https://api.github.com/users/soheil-star01/repos",
+ "events_url": "https://api.github.com/users/soheil-star01/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/soheil-star01/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "repo": {
+ "id": 648726505,
+ "node_id": "R_kgDOJqrH6Q",
+ "name": "soheil-star01",
+ "full_name": "soheil-star01/soheil-star01",
+ "private": false,
+ "owner": {
+ "login": "soheil-star01",
+ "id": 75124326,
+ "node_id": "MDQ6VXNlcjc1MTI0MzI2",
+ "avatar_url": "https://avatars.githubusercontent.com/u/75124326?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/soheil-star01",
+ "html_url": "https://github.com/soheil-star01",
+ "followers_url": "https://api.github.com/users/soheil-star01/followers",
+ "following_url": "https://api.github.com/users/soheil-star01/following{/other_user}",
+ "gists_url": "https://api.github.com/users/soheil-star01/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/soheil-star01/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/soheil-star01/subscriptions",
+ "organizations_url": "https://api.github.com/users/soheil-star01/orgs",
+ "repos_url": "https://api.github.com/users/soheil-star01/repos",
+ "events_url": "https://api.github.com/users/soheil-star01/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/soheil-star01/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "html_url": "https://github.com/soheil-star01/soheil-star01",
+ "description": null,
+ "fork": false,
+ "url": "https://api.github.com/repos/soheil-star01/soheil-star01",
+ "forks_url": "https://api.github.com/repos/soheil-star01/soheil-star01/forks",
+ "keys_url": "https://api.github.com/repos/soheil-star01/soheil-star01/keys{/key_id}",
+ "collaborators_url": "https://api.github.com/repos/soheil-star01/soheil-star01/collaborators{/collaborator}",
+ "teams_url": "https://api.github.com/repos/soheil-star01/soheil-star01/teams",
+ "hooks_url": "https://api.github.com/repos/soheil-star01/soheil-star01/hooks",
+ "issue_events_url": "https://api.github.com/repos/soheil-star01/soheil-star01/issues/events{/number}",
+ "events_url": "https://api.github.com/repos/soheil-star01/soheil-star01/events",
+ "assignees_url": "https://api.github.com/repos/soheil-star01/soheil-star01/assignees{/user}",
+ "branches_url": "https://api.github.com/repos/soheil-star01/soheil-star01/branches{/branch}",
+ "tags_url": "https://api.github.com/repos/soheil-star01/soheil-star01/tags",
+ "blobs_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/blobs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/tags{/sha}",
+ "git_refs_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/refs{/sha}",
+ "trees_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/trees{/sha}",
+ "statuses_url": "https://api.github.com/repos/soheil-star01/soheil-star01/statuses/{sha}",
+ "languages_url": "https://api.github.com/repos/soheil-star01/soheil-star01/languages",
+ "stargazers_url": "https://api.github.com/repos/soheil-star01/soheil-star01/stargazers",
+ "contributors_url": "https://api.github.com/repos/soheil-star01/soheil-star01/contributors",
+ "subscribers_url": "https://api.github.com/repos/soheil-star01/soheil-star01/subscribers",
+ "subscription_url": "https://api.github.com/repos/soheil-star01/soheil-star01/subscription",
+ "commits_url": "https://api.github.com/repos/soheil-star01/soheil-star01/commits{/sha}",
+ "git_commits_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/commits{/sha}",
+ "comments_url": "https://api.github.com/repos/soheil-star01/soheil-star01/comments{/number}",
+ "issue_comment_url": "https://api.github.com/repos/soheil-star01/soheil-star01/issues/comments{/number}",
+ "contents_url": "https://api.github.com/repos/soheil-star01/soheil-star01/contents/{+path}",
+ "compare_url": "https://api.github.com/repos/soheil-star01/soheil-star01/compare/{base}...{head}",
+ "merges_url": "https://api.github.com/repos/soheil-star01/soheil-star01/merges",
+ "archive_url": "https://api.github.com/repos/soheil-star01/soheil-star01/{archive_format}{/ref}",
+ "downloads_url": "https://api.github.com/repos/soheil-star01/soheil-star01/downloads",
+ "issues_url": "https://api.github.com/repos/soheil-star01/soheil-star01/issues{/number}",
+ "pulls_url": "https://api.github.com/repos/soheil-star01/soheil-star01/pulls{/number}",
+ "milestones_url": "https://api.github.com/repos/soheil-star01/soheil-star01/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/soheil-star01/soheil-star01/notifications{?since,all,participating}",
+ "labels_url": "https://api.github.com/repos/soheil-star01/soheil-star01/labels{/name}",
+ "releases_url": "https://api.github.com/repos/soheil-star01/soheil-star01/releases{/id}",
+ "deployments_url": "https://api.github.com/repos/soheil-star01/soheil-star01/deployments",
+ "created_at": "2023-06-02T16:49:34Z",
+ "updated_at": "2023-06-02T16:49:35Z",
+ "pushed_at": "2025-03-29T20:08:21Z",
+ "git_url": "git://github.com/soheil-star01/soheil-star01.git",
+ "ssh_url": "[email protected]:soheil-star01/soheil-star01.git",
+ "clone_url": "https://github.com/soheil-star01/soheil-star01.git",
+ "svn_url": "https://github.com/soheil-star01/soheil-star01",
+ "homepage": null,
+ "size": 2,
+ "stargazers_count": 0,
+ "watchers_count": 0,
+ "language": null,
+ "has_issues": true,
+ "has_projects": true,
+ "has_downloads": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_discussions": false,
+ "forks_count": 0,
+ "mirror_url": null,
+ "archived": false,
+ "disabled": false,
+ "open_issues_count": 1,
+ "license": null,
+ "allow_forking": true,
+ "is_template": false,
+ "web_commit_signoff_required": false,
+ "topics": [],
+ "visibility": "public",
+ "forks": 0,
+ "open_issues": 1,
+ "watchers": 0,
+ "default_branch": "main",
+ "allow_squash_merge": true,
+ "allow_merge_commit": true,
+ "allow_rebase_merge": true,
+ "allow_auto_merge": false,
+ "delete_branch_on_merge": false,
+ "allow_update_branch": false,
+ "use_squash_pr_title_as_default": false,
+ "squash_merge_commit_message": "COMMIT_MESSAGES",
+ "squash_merge_commit_title": "COMMIT_OR_PR_TITLE",
+ "merge_commit_message": "PR_TITLE",
+ "merge_commit_title": "MERGE_MESSAGE"
+ }
+ },
+ "_links": {
+ "self": {
+ "href": "https://api.github.com/repos/soheil-star01/soheil-star01/pulls/1"
+ },
+ "html": {
+ "href": "https://github.com/soheil-star01/soheil-star01/pull/1"
+ },
+ "issue": {
+ "href": "https://api.github.com/repos/soheil-star01/soheil-star01/issues/1"
+ },
+ "comments": {
+ "href": "https://api.github.com/repos/soheil-star01/soheil-star01/issues/1/comments"
+ },
+ "review_comments": {
+ "href": "https://api.github.com/repos/soheil-star01/soheil-star01/pulls/1/comments"
+ },
+ "review_comment": {
+ "href": "https://api.github.com/repos/soheil-star01/soheil-star01/pulls/comments{/number}"
+ },
+ "commits": {
+ "href": "https://api.github.com/repos/soheil-star01/soheil-star01/pulls/1/commits"
+ },
+ "statuses": {
+ "href": "https://api.github.com/repos/soheil-star01/soheil-star01/statuses/87d7bbbd605ee812b005793c01b0c567dc732bdc"
+ }
+ },
+ "author_association": "OWNER",
+ "auto_merge": null,
+ "active_lock_reason": null,
+ "merged": false,
+ "mergeable": true,
+ "rebaseable": true,
+ "mergeable_state": "clean",
+ "merged_by": null,
+ "comments": 0,
+ "review_comments": 0,
+ "maintainer_can_modify": false,
+ "commits": 1,
+ "additions": 1,
+ "deletions": 1,
+ "changed_files": 1
+ },
+ "milestone": {
+ "url": "https://api.github.com/repos/soheil-star01/soheil-star01/milestones/1",
+ "html_url": "https://github.com/soheil-star01/soheil-star01/milestone/1",
+ "labels_url": "https://api.github.com/repos/soheil-star01/soheil-star01/milestones/1/labels",
+ "id": 12638031,
+ "node_id": "MI_kwDOJqrH6c4AwNdP",
+ "number": 1,
+ "title": "new_ms",
+ "description": null,
+ "creator": {
+ "login": "soheil-star01",
+ "id": 75124326,
+ "node_id": "MDQ6VXNlcjc1MTI0MzI2",
+ "avatar_url": "https://avatars.githubusercontent.com/u/75124326?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/soheil-star01",
+ "html_url": "https://github.com/soheil-star01",
+ "followers_url": "https://api.github.com/users/soheil-star01/followers",
+ "following_url": "https://api.github.com/users/soheil-star01/following{/other_user}",
+ "gists_url": "https://api.github.com/users/soheil-star01/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/soheil-star01/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/soheil-star01/subscriptions",
+ "organizations_url": "https://api.github.com/users/soheil-star01/orgs",
+ "repos_url": "https://api.github.com/users/soheil-star01/repos",
+ "events_url": "https://api.github.com/users/soheil-star01/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/soheil-star01/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "open_issues": 0,
+ "closed_issues": 0,
+ "state": "open",
+ "created_at": "2025-03-29T20:16:02Z",
+ "updated_at": "2025-03-29T20:17:34Z",
+ "due_on": null,
+ "closed_at": null
+ },
+ "repository": {
+ "id": 648726505,
+ "node_id": "R_kgDOJqrH6Q",
+ "name": "soheil-star01",
+ "full_name": "soheil-star01/soheil-star01",
+ "private": false,
+ "owner": {
+ "login": "soheil-star01",
+ "id": 75124326,
+ "node_id": "MDQ6VXNlcjc1MTI0MzI2",
+ "avatar_url": "https://avatars.githubusercontent.com/u/75124326?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/soheil-star01",
+ "html_url": "https://github.com/soheil-star01",
+ "followers_url": "https://api.github.com/users/soheil-star01/followers",
+ "following_url": "https://api.github.com/users/soheil-star01/following{/other_user}",
+ "gists_url": "https://api.github.com/users/soheil-star01/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/soheil-star01/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/soheil-star01/subscriptions",
+ "organizations_url": "https://api.github.com/users/soheil-star01/orgs",
+ "repos_url": "https://api.github.com/users/soheil-star01/repos",
+ "events_url": "https://api.github.com/users/soheil-star01/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/soheil-star01/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "html_url": "https://github.com/soheil-star01/soheil-star01",
+ "description": null,
+ "fork": false,
+ "url": "https://api.github.com/repos/soheil-star01/soheil-star01",
+ "forks_url": "https://api.github.com/repos/soheil-star01/soheil-star01/forks",
+ "keys_url": "https://api.github.com/repos/soheil-star01/soheil-star01/keys{/key_id}",
+ "collaborators_url": "https://api.github.com/repos/soheil-star01/soheil-star01/collaborators{/collaborator}",
+ "teams_url": "https://api.github.com/repos/soheil-star01/soheil-star01/teams",
+ "hooks_url": "https://api.github.com/repos/soheil-star01/soheil-star01/hooks",
+ "issue_events_url": "https://api.github.com/repos/soheil-star01/soheil-star01/issues/events{/number}",
+ "events_url": "https://api.github.com/repos/soheil-star01/soheil-star01/events",
+ "assignees_url": "https://api.github.com/repos/soheil-star01/soheil-star01/assignees{/user}",
+ "branches_url": "https://api.github.com/repos/soheil-star01/soheil-star01/branches{/branch}",
+ "tags_url": "https://api.github.com/repos/soheil-star01/soheil-star01/tags",
+ "blobs_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/blobs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/tags{/sha}",
+ "git_refs_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/refs{/sha}",
+ "trees_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/trees{/sha}",
+ "statuses_url": "https://api.github.com/repos/soheil-star01/soheil-star01/statuses/{sha}",
+ "languages_url": "https://api.github.com/repos/soheil-star01/soheil-star01/languages",
+ "stargazers_url": "https://api.github.com/repos/soheil-star01/soheil-star01/stargazers",
+ "contributors_url": "https://api.github.com/repos/soheil-star01/soheil-star01/contributors",
+ "subscribers_url": "https://api.github.com/repos/soheil-star01/soheil-star01/subscribers",
+ "subscription_url": "https://api.github.com/repos/soheil-star01/soheil-star01/subscription",
+ "commits_url": "https://api.github.com/repos/soheil-star01/soheil-star01/commits{/sha}",
+ "git_commits_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/commits{/sha}",
+ "comments_url": "https://api.github.com/repos/soheil-star01/soheil-star01/comments{/number}",
+ "issue_comment_url": "https://api.github.com/repos/soheil-star01/soheil-star01/issues/comments{/number}",
+ "contents_url": "https://api.github.com/repos/soheil-star01/soheil-star01/contents/{+path}",
+ "compare_url": "https://api.github.com/repos/soheil-star01/soheil-star01/compare/{base}...{head}",
+ "merges_url": "https://api.github.com/repos/soheil-star01/soheil-star01/merges",
+ "archive_url": "https://api.github.com/repos/soheil-star01/soheil-star01/{archive_format}{/ref}",
+ "downloads_url": "https://api.github.com/repos/soheil-star01/soheil-star01/downloads",
+ "issues_url": "https://api.github.com/repos/soheil-star01/soheil-star01/issues{/number}",
+ "pulls_url": "https://api.github.com/repos/soheil-star01/soheil-star01/pulls{/number}",
+ "milestones_url": "https://api.github.com/repos/soheil-star01/soheil-star01/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/soheil-star01/soheil-star01/notifications{?since,all,participating}",
+ "labels_url": "https://api.github.com/repos/soheil-star01/soheil-star01/labels{/name}",
+ "releases_url": "https://api.github.com/repos/soheil-star01/soheil-star01/releases{/id}",
+ "deployments_url": "https://api.github.com/repos/soheil-star01/soheil-star01/deployments",
+ "created_at": "2023-06-02T16:49:34Z",
+ "updated_at": "2023-06-02T16:49:35Z",
+ "pushed_at": "2025-03-29T20:08:21Z",
+ "git_url": "git://github.com/soheil-star01/soheil-star01.git",
+ "ssh_url": "[email protected]:soheil-star01/soheil-star01.git",
+ "clone_url": "https://github.com/soheil-star01/soheil-star01.git",
+ "svn_url": "https://github.com/soheil-star01/soheil-star01",
+ "homepage": null,
+ "size": 2,
+ "stargazers_count": 0,
+ "watchers_count": 0,
+ "language": null,
+ "has_issues": true,
+ "has_projects": true,
+ "has_downloads": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_discussions": false,
+ "forks_count": 0,
+ "mirror_url": null,
+ "archived": false,
+ "disabled": false,
+ "open_issues_count": 1,
+ "license": null,
+ "allow_forking": true,
+ "is_template": false,
+ "web_commit_signoff_required": false,
+ "topics": [],
+ "visibility": "public",
+ "forks": 0,
+ "open_issues": 1,
+ "watchers": 0,
+ "default_branch": "main"
+ },
+ "sender": {
+ "login": "soheil-star01",
+ "id": 75124326,
+ "node_id": "MDQ6VXNlcjc1MTI0MzI2",
+ "avatar_url": "https://avatars.githubusercontent.com/u/75124326?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/soheil-star01",
+ "html_url": "https://github.com/soheil-star01",
+ "followers_url": "https://api.github.com/users/soheil-star01/followers",
+ "following_url": "https://api.github.com/users/soheil-star01/following{/other_user}",
+ "gists_url": "https://api.github.com/users/soheil-star01/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/soheil-star01/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/soheil-star01/subscriptions",
+ "organizations_url": "https://api.github.com/users/soheil-star01/orgs",
+ "repos_url": "https://api.github.com/users/soheil-star01/repos",
+ "events_url": "https://api.github.com/users/soheil-star01/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/soheil-star01/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ }
+}
diff --git a/zerver/webhooks/github/fixtures/pull_request__dequeued.json b/zerver/webhooks/github/fixtures/pull_request__dequeued.json
new file mode 100644
index 00000000000..9540a738450
--- /dev/null
+++ b/zerver/webhooks/github/fixtures/pull_request__dequeued.json
@@ -0,0 +1,523 @@
+{
+ "action": "dequeued",
+ "number": 1,
+ "pull_request": {
+ "url": "https://api.github.com/repos/techpillars-oy/test1/pulls/1",
+ "id": 2427297210,
+ "node_id": "PR_kwDOOQ6XGM6QrZ26",
+ "html_url": "https://github.com/techpillars-oy/test1/pull/1",
+ "diff_url": "https://github.com/techpillars-oy/test1/pull/1.diff",
+ "patch_url": "https://github.com/techpillars-oy/test1/pull/1.patch",
+ "issue_url": "https://api.github.com/repos/techpillars-oy/test1/issues/1",
+ "number": 1,
+ "state": "open",
+ "locked": false,
+ "title": "Feat/webhook",
+ "user": {
+ "login": "soheil-star01",
+ "id": 75124326,
+ "node_id": "MDQ6VXNlcjc1MTI0MzI2",
+ "avatar_url": "https://avatars.githubusercontent.com/u/75124326?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/soheil-star01",
+ "html_url": "https://github.com/soheil-star01",
+ "followers_url": "https://api.github.com/users/soheil-star01/followers",
+ "following_url": "https://api.github.com/users/soheil-star01/following{/other_user}",
+ "gists_url": "https://api.github.com/users/soheil-star01/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/soheil-star01/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/soheil-star01/subscriptions",
+ "organizations_url": "https://api.github.com/users/soheil-star01/orgs",
+ "repos_url": "https://api.github.com/users/soheil-star01/repos",
+ "events_url": "https://api.github.com/users/soheil-star01/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/soheil-star01/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "body": null,
+ "created_at": "2025-03-29T23:18:37Z",
+ "updated_at": "2025-03-29T23:18:37Z",
+ "closed_at": null,
+ "merged_at": null,
+ "merge_commit_sha": "2644c20151d1a7a46005a23bbb4ef1feb0214e73",
+ "assignee": null,
+ "assignees": [],
+ "requested_reviewers": [],
+ "requested_teams": [],
+ "labels": [],
+ "milestone": null,
+ "draft": false,
+ "commits_url": "https://api.github.com/repos/techpillars-oy/test1/pulls/1/commits",
+ "review_comments_url": "https://api.github.com/repos/techpillars-oy/test1/pulls/1/comments",
+ "review_comment_url": "https://api.github.com/repos/techpillars-oy/test1/pulls/comments{/number}",
+ "comments_url": "https://api.github.com/repos/techpillars-oy/test1/issues/1/comments",
+ "statuses_url": "https://api.github.com/repos/techpillars-oy/test1/statuses/493ba2f67d61b69550a9b3bef4348bccf49cde82",
+ "head": {
+ "label": "techpillars-oy:feat/webhook",
+ "ref": "feat/webhook",
+ "sha": "493ba2f67d61b69550a9b3bef4348bccf49cde82",
+ "user": {
+ "login": "techpillars-oy",
+ "id": 205471033,
+ "node_id": "O_kgDODD89OQ",
+ "avatar_url": "https://avatars.githubusercontent.com/u/205471033?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/techpillars-oy",
+ "html_url": "https://github.com/techpillars-oy",
+ "followers_url": "https://api.github.com/users/techpillars-oy/followers",
+ "following_url": "https://api.github.com/users/techpillars-oy/following{/other_user}",
+ "gists_url": "https://api.github.com/users/techpillars-oy/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/techpillars-oy/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/techpillars-oy/subscriptions",
+ "organizations_url": "https://api.github.com/users/techpillars-oy/orgs",
+ "repos_url": "https://api.github.com/users/techpillars-oy/repos",
+ "events_url": "https://api.github.com/users/techpillars-oy/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/techpillars-oy/received_events",
+ "type": "Organization",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "repo": {
+ "id": 957257496,
+ "node_id": "R_kgDOOQ6XGA",
+ "name": "test1",
+ "full_name": "techpillars-oy/test1",
+ "private": false,
+ "owner": {
+ "login": "techpillars-oy",
+ "id": 205471033,
+ "node_id": "O_kgDODD89OQ",
+ "avatar_url": "https://avatars.githubusercontent.com/u/205471033?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/techpillars-oy",
+ "html_url": "https://github.com/techpillars-oy",
+ "followers_url": "https://api.github.com/users/techpillars-oy/followers",
+ "following_url": "https://api.github.com/users/techpillars-oy/following{/other_user}",
+ "gists_url": "https://api.github.com/users/techpillars-oy/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/techpillars-oy/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/techpillars-oy/subscriptions",
+ "organizations_url": "https://api.github.com/users/techpillars-oy/orgs",
+ "repos_url": "https://api.github.com/users/techpillars-oy/repos",
+ "events_url": "https://api.github.com/users/techpillars-oy/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/techpillars-oy/received_events",
+ "type": "Organization",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "html_url": "https://github.com/techpillars-oy/test1",
+ "description": null,
+ "fork": false,
+ "url": "https://api.github.com/repos/techpillars-oy/test1",
+ "forks_url": "https://api.github.com/repos/techpillars-oy/test1/forks",
+ "keys_url": "https://api.github.com/repos/techpillars-oy/test1/keys{/key_id}",
+ "collaborators_url": "https://api.github.com/repos/techpillars-oy/test1/collaborators{/collaborator}",
+ "teams_url": "https://api.github.com/repos/techpillars-oy/test1/teams",
+ "hooks_url": "https://api.github.com/repos/techpillars-oy/test1/hooks",
+ "issue_events_url": "https://api.github.com/repos/techpillars-oy/test1/issues/events{/number}",
+ "events_url": "https://api.github.com/repos/techpillars-oy/test1/events",
+ "assignees_url": "https://api.github.com/repos/techpillars-oy/test1/assignees{/user}",
+ "branches_url": "https://api.github.com/repos/techpillars-oy/test1/branches{/branch}",
+ "tags_url": "https://api.github.com/repos/techpillars-oy/test1/tags",
+ "blobs_url": "https://api.github.com/repos/techpillars-oy/test1/git/blobs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/techpillars-oy/test1/git/tags{/sha}",
+ "git_refs_url": "https://api.github.com/repos/techpillars-oy/test1/git/refs{/sha}",
+ "trees_url": "https://api.github.com/repos/techpillars-oy/test1/git/trees{/sha}",
+ "statuses_url": "https://api.github.com/repos/techpillars-oy/test1/statuses/{sha}",
+ "languages_url": "https://api.github.com/repos/techpillars-oy/test1/languages",
+ "stargazers_url": "https://api.github.com/repos/techpillars-oy/test1/stargazers",
+ "contributors_url": "https://api.github.com/repos/techpillars-oy/test1/contributors",
+ "subscribers_url": "https://api.github.com/repos/techpillars-oy/test1/subscribers",
+ "subscription_url": "https://api.github.com/repos/techpillars-oy/test1/subscription",
+ "commits_url": "https://api.github.com/repos/techpillars-oy/test1/commits{/sha}",
+ "git_commits_url": "https://api.github.com/repos/techpillars-oy/test1/git/commits{/sha}",
+ "comments_url": "https://api.github.com/repos/techpillars-oy/test1/comments{/number}",
+ "issue_comment_url": "https://api.github.com/repos/techpillars-oy/test1/issues/comments{/number}",
+ "contents_url": "https://api.github.com/repos/techpillars-oy/test1/contents/{+path}",
+ "compare_url": "https://api.github.com/repos/techpillars-oy/test1/compare/{base}...{head}",
+ "merges_url": "https://api.github.com/repos/techpillars-oy/test1/merges",
+ "archive_url": "https://api.github.com/repos/techpillars-oy/test1/{archive_format}{/ref}",
+ "downloads_url": "https://api.github.com/repos/techpillars-oy/test1/downloads",
+ "issues_url": "https://api.github.com/repos/techpillars-oy/test1/issues{/number}",
+ "pulls_url": "https://api.github.com/repos/techpillars-oy/test1/pulls{/number}",
+ "milestones_url": "https://api.github.com/repos/techpillars-oy/test1/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/techpillars-oy/test1/notifications{?since,all,participating}",
+ "labels_url": "https://api.github.com/repos/techpillars-oy/test1/labels{/name}",
+ "releases_url": "https://api.github.com/repos/techpillars-oy/test1/releases{/id}",
+ "deployments_url": "https://api.github.com/repos/techpillars-oy/test1/deployments",
+ "created_at": "2025-03-29T23:13:47Z",
+ "updated_at": "2025-03-29T23:15:43Z",
+ "pushed_at": "2025-03-29T23:18:26Z",
+ "git_url": "git://github.com/techpillars-oy/test1.git",
+ "ssh_url": "[email protected]:techpillars-oy/test1.git",
+ "clone_url": "https://github.com/techpillars-oy/test1.git",
+ "svn_url": "https://github.com/techpillars-oy/test1",
+ "homepage": null,
+ "size": 0,
+ "stargazers_count": 0,
+ "watchers_count": 0,
+ "language": null,
+ "has_issues": true,
+ "has_projects": true,
+ "has_downloads": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_discussions": false,
+ "forks_count": 0,
+ "mirror_url": null,
+ "archived": false,
+ "disabled": false,
+ "open_issues_count": 1,
+ "license": null,
+ "allow_forking": true,
+ "is_template": false,
+ "web_commit_signoff_required": false,
+ "topics": [],
+ "visibility": "public",
+ "forks": 0,
+ "open_issues": 1,
+ "watchers": 0,
+ "default_branch": "main",
+ "allow_squash_merge": true,
+ "allow_merge_commit": true,
+ "allow_rebase_merge": true,
+ "allow_auto_merge": false,
+ "delete_branch_on_merge": false,
+ "allow_update_branch": false,
+ "use_squash_pr_title_as_default": false,
+ "squash_merge_commit_message": "COMMIT_MESSAGES",
+ "squash_merge_commit_title": "COMMIT_OR_PR_TITLE",
+ "merge_commit_message": "PR_TITLE",
+ "merge_commit_title": "MERGE_MESSAGE"
+ }
+ },
+ "base": {
+ "label": "techpillars-oy:main",
+ "ref": "main",
+ "sha": "322299dc0d8a600f84909541ad88fd3f6a15df62",
+ "user": {
+ "login": "techpillars-oy",
+ "id": 205471033,
+ "node_id": "O_kgDODD89OQ",
+ "avatar_url": "https://avatars.githubusercontent.com/u/205471033?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/techpillars-oy",
+ "html_url": "https://github.com/techpillars-oy",
+ "followers_url": "https://api.github.com/users/techpillars-oy/followers",
+ "following_url": "https://api.github.com/users/techpillars-oy/following{/other_user}",
+ "gists_url": "https://api.github.com/users/techpillars-oy/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/techpillars-oy/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/techpillars-oy/subscriptions",
+ "organizations_url": "https://api.github.com/users/techpillars-oy/orgs",
+ "repos_url": "https://api.github.com/users/techpillars-oy/repos",
+ "events_url": "https://api.github.com/users/techpillars-oy/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/techpillars-oy/received_events",
+ "type": "Organization",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "repo": {
+ "id": 957257496,
+ "node_id": "R_kgDOOQ6XGA",
+ "name": "test1",
+ "full_name": "techpillars-oy/test1",
+ "private": false,
+ "owner": {
+ "login": "techpillars-oy",
+ "id": 205471033,
+ "node_id": "O_kgDODD89OQ",
+ "avatar_url": "https://avatars.githubusercontent.com/u/205471033?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/techpillars-oy",
+ "html_url": "https://github.com/techpillars-oy",
+ "followers_url": "https://api.github.com/users/techpillars-oy/followers",
+ "following_url": "https://api.github.com/users/techpillars-oy/following{/other_user}",
+ "gists_url": "https://api.github.com/users/techpillars-oy/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/techpillars-oy/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/techpillars-oy/subscriptions",
+ "organizations_url": "https://api.github.com/users/techpillars-oy/orgs",
+ "repos_url": "https://api.github.com/users/techpillars-oy/repos",
+ "events_url": "https://api.github.com/users/techpillars-oy/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/techpillars-oy/received_events",
+ "type": "Organization",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "html_url": "https://github.com/techpillars-oy/test1",
+ "description": null,
+ "fork": false,
+ "url": "https://api.github.com/repos/techpillars-oy/test1",
+ "forks_url": "https://api.github.com/repos/techpillars-oy/test1/forks",
+ "keys_url": "https://api.github.com/repos/techpillars-oy/test1/keys{/key_id}",
+ "collaborators_url": "https://api.github.com/repos/techpillars-oy/test1/collaborators{/collaborator}",
+ "teams_url": "https://api.github.com/repos/techpillars-oy/test1/teams",
+ "hooks_url": "https://api.github.com/repos/techpillars-oy/test1/hooks",
+ "issue_events_url": "https://api.github.com/repos/techpillars-oy/test1/issues/events{/number}",
+ "events_url": "https://api.github.com/repos/techpillars-oy/test1/events",
+ "assignees_url": "https://api.github.com/repos/techpillars-oy/test1/assignees{/user}",
+ "branches_url": "https://api.github.com/repos/techpillars-oy/test1/branches{/branch}",
+ "tags_url": "https://api.github.com/repos/techpillars-oy/test1/tags",
+ "blobs_url": "https://api.github.com/repos/techpillars-oy/test1/git/blobs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/techpillars-oy/test1/git/tags{/sha}",
+ "git_refs_url": "https://api.github.com/repos/techpillars-oy/test1/git/refs{/sha}",
+ "trees_url": "https://api.github.com/repos/techpillars-oy/test1/git/trees{/sha}",
+ "statuses_url": "https://api.github.com/repos/techpillars-oy/test1/statuses/{sha}",
+ "languages_url": "https://api.github.com/repos/techpillars-oy/test1/languages",
+ "stargazers_url": "https://api.github.com/repos/techpillars-oy/test1/stargazers",
+ "contributors_url": "https://api.github.com/repos/techpillars-oy/test1/contributors",
+ "subscribers_url": "https://api.github.com/repos/techpillars-oy/test1/subscribers",
+ "subscription_url": "https://api.github.com/repos/techpillars-oy/test1/subscription",
+ "commits_url": "https://api.github.com/repos/techpillars-oy/test1/commits{/sha}",
+ "git_commits_url": "https://api.github.com/repos/techpillars-oy/test1/git/commits{/sha}",
+ "comments_url": "https://api.github.com/repos/techpillars-oy/test1/comments{/number}",
+ "issue_comment_url": "https://api.github.com/repos/techpillars-oy/test1/issues/comments{/number}",
+ "contents_url": "https://api.github.com/repos/techpillars-oy/test1/contents/{+path}",
+ "compare_url": "https://api.github.com/repos/techpillars-oy/test1/compare/{base}...{head}",
+ "merges_url": "https://api.github.com/repos/techpillars-oy/test1/merges",
+ "archive_url": "https://api.github.com/repos/techpillars-oy/test1/{archive_format}{/ref}",
+ "downloads_url": "https://api.github.com/repos/techpillars-oy/test1/downloads",
+ "issues_url": "https://api.github.com/repos/techpillars-oy/test1/issues{/number}",
+ "pulls_url": "https://api.github.com/repos/techpillars-oy/test1/pulls{/number}",
+ "milestones_url": "https://api.github.com/repos/techpillars-oy/test1/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/techpillars-oy/test1/notifications{?since,all,participating}",
+ "labels_url": "https://api.github.com/repos/techpillars-oy/test1/labels{/name}",
+ "releases_url": "https://api.github.com/repos/techpillars-oy/test1/releases{/id}",
+ "deployments_url": "https://api.github.com/repos/techpillars-oy/test1/deployments",
+ "created_at": "2025-03-29T23:13:47Z",
+ "updated_at": "2025-03-29T23:15:43Z",
+ "pushed_at": "2025-03-29T23:18:26Z",
+ "git_url": "git://github.com/techpillars-oy/test1.git",
+ "ssh_url": "[email protected]:techpillars-oy/test1.git",
+ "clone_url": "https://github.com/techpillars-oy/test1.git",
+ "svn_url": "https://github.com/techpillars-oy/test1",
+ "homepage": null,
+ "size": 0,
+ "stargazers_count": 0,
+ "watchers_count": 0,
+ "language": null,
+ "has_issues": true,
+ "has_projects": true,
+ "has_downloads": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_discussions": false,
+ "forks_count": 0,
+ "mirror_url": null,
+ "archived": false,
+ "disabled": false,
+ "open_issues_count": 1,
+ "license": null,
+ "allow_forking": true,
+ "is_template": false,
+ "web_commit_signoff_required": false,
+ "topics": [],
+ "visibility": "public",
+ "forks": 0,
+ "open_issues": 1,
+ "watchers": 0,
+ "default_branch": "main",
+ "allow_squash_merge": true,
+ "allow_merge_commit": true,
+ "allow_rebase_merge": true,
+ "allow_auto_merge": false,
+ "delete_branch_on_merge": false,
+ "allow_update_branch": false,
+ "use_squash_pr_title_as_default": false,
+ "squash_merge_commit_message": "COMMIT_MESSAGES",
+ "squash_merge_commit_title": "COMMIT_OR_PR_TITLE",
+ "merge_commit_message": "PR_TITLE",
+ "merge_commit_title": "MERGE_MESSAGE"
+ }
+ },
+ "_links": {
+ "self": {
+ "href": "https://api.github.com/repos/techpillars-oy/test1/pulls/1"
+ },
+ "html": {
+ "href": "https://github.com/techpillars-oy/test1/pull/1"
+ },
+ "issue": {
+ "href": "https://api.github.com/repos/techpillars-oy/test1/issues/1"
+ },
+ "comments": {
+ "href": "https://api.github.com/repos/techpillars-oy/test1/issues/1/comments"
+ },
+ "review_comments": {
+ "href": "https://api.github.com/repos/techpillars-oy/test1/pulls/1/comments"
+ },
+ "review_comment": {
+ "href": "https://api.github.com/repos/techpillars-oy/test1/pulls/comments{/number}"
+ },
+ "commits": {
+ "href": "https://api.github.com/repos/techpillars-oy/test1/pulls/1/commits"
+ },
+ "statuses": {
+ "href": "https://api.github.com/repos/techpillars-oy/test1/statuses/493ba2f67d61b69550a9b3bef4348bccf49cde82"
+ }
+ },
+ "author_association": "CONTRIBUTOR",
+ "auto_merge": null,
+ "active_lock_reason": null,
+ "merged": false,
+ "mergeable": true,
+ "rebaseable": false,
+ "mergeable_state": "clean",
+ "merged_by": null,
+ "comments": 0,
+ "review_comments": 0,
+ "maintainer_can_modify": false,
+ "commits": 3,
+ "additions": 2,
+ "deletions": 1,
+ "changed_files": 1
+ },
+ "reason": "MANUAL",
+ "repository": {
+ "id": 957257496,
+ "node_id": "R_kgDOOQ6XGA",
+ "name": "test1",
+ "full_name": "techpillars-oy/test1",
+ "private": false,
+ "owner": {
+ "login": "techpillars-oy",
+ "id": 205471033,
+ "node_id": "O_kgDODD89OQ",
+ "avatar_url": "https://avatars.githubusercontent.com/u/205471033?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/techpillars-oy",
+ "html_url": "https://github.com/techpillars-oy",
+ "followers_url": "https://api.github.com/users/techpillars-oy/followers",
+ "following_url": "https://api.github.com/users/techpillars-oy/following{/other_user}",
+ "gists_url": "https://api.github.com/users/techpillars-oy/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/techpillars-oy/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/techpillars-oy/subscriptions",
+ "organizations_url": "https://api.github.com/users/techpillars-oy/orgs",
+ "repos_url": "https://api.github.com/users/techpillars-oy/repos",
+ "events_url": "https://api.github.com/users/techpillars-oy/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/techpillars-oy/received_events",
+ "type": "Organization",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "html_url": "https://github.com/techpillars-oy/test1",
+ "description": null,
+ "fork": false,
+ "url": "https://api.github.com/repos/techpillars-oy/test1",
+ "forks_url": "https://api.github.com/repos/techpillars-oy/test1/forks",
+ "keys_url": "https://api.github.com/repos/techpillars-oy/test1/keys{/key_id}",
+ "collaborators_url": "https://api.github.com/repos/techpillars-oy/test1/collaborators{/collaborator}",
+ "teams_url": "https://api.github.com/repos/techpillars-oy/test1/teams",
+ "hooks_url": "https://api.github.com/repos/techpillars-oy/test1/hooks",
+ "issue_events_url": "https://api.github.com/repos/techpillars-oy/test1/issues/events{/number}",
+ "events_url": "https://api.github.com/repos/techpillars-oy/test1/events",
+ "assignees_url": "https://api.github.com/repos/techpillars-oy/test1/assignees{/user}",
+ "branches_url": "https://api.github.com/repos/techpillars-oy/test1/branches{/branch}",
+ "tags_url": "https://api.github.com/repos/techpillars-oy/test1/tags",
+ "blobs_url": "https://api.github.com/repos/techpillars-oy/test1/git/blobs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/techpillars-oy/test1/git/tags{/sha}",
+ "git_refs_url": "https://api.github.com/repos/techpillars-oy/test1/git/refs{/sha}",
+ "trees_url": "https://api.github.com/repos/techpillars-oy/test1/git/trees{/sha}",
+ "statuses_url": "https://api.github.com/repos/techpillars-oy/test1/statuses/{sha}",
+ "languages_url": "https://api.github.com/repos/techpillars-oy/test1/languages",
+ "stargazers_url": "https://api.github.com/repos/techpillars-oy/test1/stargazers",
+ "contributors_url": "https://api.github.com/repos/techpillars-oy/test1/contributors",
+ "subscribers_url": "https://api.github.com/repos/techpillars-oy/test1/subscribers",
+ "subscription_url": "https://api.github.com/repos/techpillars-oy/test1/subscription",
+ "commits_url": "https://api.github.com/repos/techpillars-oy/test1/commits{/sha}",
+ "git_commits_url": "https://api.github.com/repos/techpillars-oy/test1/git/commits{/sha}",
+ "comments_url": "https://api.github.com/repos/techpillars-oy/test1/comments{/number}",
+ "issue_comment_url": "https://api.github.com/repos/techpillars-oy/test1/issues/comments{/number}",
+ "contents_url": "https://api.github.com/repos/techpillars-oy/test1/contents/{+path}",
+ "compare_url": "https://api.github.com/repos/techpillars-oy/test1/compare/{base}...{head}",
+ "merges_url": "https://api.github.com/repos/techpillars-oy/test1/merges",
+ "archive_url": "https://api.github.com/repos/techpillars-oy/test1/{archive_format}{/ref}",
+ "downloads_url": "https://api.github.com/repos/techpillars-oy/test1/downloads",
+ "issues_url": "https://api.github.com/repos/techpillars-oy/test1/issues{/number}",
+ "pulls_url": "https://api.github.com/repos/techpillars-oy/test1/pulls{/number}",
+ "milestones_url": "https://api.github.com/repos/techpillars-oy/test1/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/techpillars-oy/test1/notifications{?since,all,participating}",
+ "labels_url": "https://api.github.com/repos/techpillars-oy/test1/labels{/name}",
+ "releases_url": "https://api.github.com/repos/techpillars-oy/test1/releases{/id}",
+ "deployments_url": "https://api.github.com/repos/techpillars-oy/test1/deployments",
+ "created_at": "2025-03-29T23:13:47Z",
+ "updated_at": "2025-03-29T23:15:43Z",
+ "pushed_at": "2025-03-29T23:18:26Z",
+ "git_url": "git://github.com/techpillars-oy/test1.git",
+ "ssh_url": "[email protected]:techpillars-oy/test1.git",
+ "clone_url": "https://github.com/techpillars-oy/test1.git",
+ "svn_url": "https://github.com/techpillars-oy/test1",
+ "homepage": null,
+ "size": 0,
+ "stargazers_count": 0,
+ "watchers_count": 0,
+ "language": null,
+ "has_issues": true,
+ "has_projects": true,
+ "has_downloads": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_discussions": false,
+ "forks_count": 0,
+ "mirror_url": null,
+ "archived": false,
+ "disabled": false,
+ "open_issues_count": 1,
+ "license": null,
+ "allow_forking": true,
+ "is_template": false,
+ "web_commit_signoff_required": false,
+ "topics": [],
+ "visibility": "public",
+ "forks": 0,
+ "open_issues": 1,
+ "watchers": 0,
+ "default_branch": "main",
+ "custom_properties": {}
+ },
+ "organization": {
+ "login": "techpillars-oy",
+ "id": 205471033,
+ "node_id": "O_kgDODD89OQ",
+ "url": "https://api.github.com/orgs/techpillars-oy",
+ "repos_url": "https://api.github.com/orgs/techpillars-oy/repos",
+ "events_url": "https://api.github.com/orgs/techpillars-oy/events",
+ "hooks_url": "https://api.github.com/orgs/techpillars-oy/hooks",
+ "issues_url": "https://api.github.com/orgs/techpillars-oy/issues",
+ "members_url": "https://api.github.com/orgs/techpillars-oy/members{/member}",
+ "public_members_url": "https://api.github.com/orgs/techpillars-oy/public_members{/member}",
+ "avatar_url": "https://avatars.githubusercontent.com/u/205471033?v=4",
+ "description": null
+ },
+ "enterprise": {
+ "id": 308188,
+ "slug": "techpillars",
+ "name": "TechPillars Oy",
+ "node_id": "E_kgDOAASz3A",
+ "avatar_url": "https://avatars.githubusercontent.com/b/308188?v=4",
+ "description": null,
+ "website_url": null,
+ "html_url": "https://github.com/enterprises/techpillars",
+ "created_at": "2025-03-29T23:09:48Z",
+ "updated_at": "2025-03-29T23:11:21Z"
+ },
+ "sender": {
+ "login": "soheil-star01",
+ "id": 75124326,
+ "node_id": "MDQ6VXNlcjc1MTI0MzI2",
+ "avatar_url": "https://avatars.githubusercontent.com/u/75124326?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/soheil-star01",
+ "html_url": "https://github.com/soheil-star01",
+ "followers_url": "https://api.github.com/users/soheil-star01/followers",
+ "following_url": "https://api.github.com/users/soheil-star01/following{/other_user}",
+ "gists_url": "https://api.github.com/users/soheil-star01/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/soheil-star01/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/soheil-star01/subscriptions",
+ "organizations_url": "https://api.github.com/users/soheil-star01/orgs",
+ "repos_url": "https://api.github.com/users/soheil-star01/repos",
+ "events_url": "https://api.github.com/users/soheil-star01/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/soheil-star01/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ }
+}
diff --git a/zerver/webhooks/github/fixtures/pull_request__enqueued.json b/zerver/webhooks/github/fixtures/pull_request__enqueued.json
new file mode 100644
index 00000000000..8c7198bf3b6
--- /dev/null
+++ b/zerver/webhooks/github/fixtures/pull_request__enqueued.json
@@ -0,0 +1,522 @@
+{
+ "action": "enqueued",
+ "number": 1,
+ "pull_request": {
+ "url": "https://api.github.com/repos/techpillars-oy/test1/pulls/1",
+ "id": 2427297210,
+ "node_id": "PR_kwDOOQ6XGM6QrZ26",
+ "html_url": "https://github.com/techpillars-oy/test1/pull/1",
+ "diff_url": "https://github.com/techpillars-oy/test1/pull/1.diff",
+ "patch_url": "https://github.com/techpillars-oy/test1/pull/1.patch",
+ "issue_url": "https://api.github.com/repos/techpillars-oy/test1/issues/1",
+ "number": 1,
+ "state": "open",
+ "locked": false,
+ "title": "Feat/webhook",
+ "user": {
+ "login": "soheil-star01",
+ "id": 75124326,
+ "node_id": "MDQ6VXNlcjc1MTI0MzI2",
+ "avatar_url": "https://avatars.githubusercontent.com/u/75124326?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/soheil-star01",
+ "html_url": "https://github.com/soheil-star01",
+ "followers_url": "https://api.github.com/users/soheil-star01/followers",
+ "following_url": "https://api.github.com/users/soheil-star01/following{/other_user}",
+ "gists_url": "https://api.github.com/users/soheil-star01/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/soheil-star01/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/soheil-star01/subscriptions",
+ "organizations_url": "https://api.github.com/users/soheil-star01/orgs",
+ "repos_url": "https://api.github.com/users/soheil-star01/repos",
+ "events_url": "https://api.github.com/users/soheil-star01/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/soheil-star01/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "body": null,
+ "created_at": "2025-03-29T23:18:37Z",
+ "updated_at": "2025-03-29T23:18:37Z",
+ "closed_at": null,
+ "merged_at": null,
+ "merge_commit_sha": "2644c20151d1a7a46005a23bbb4ef1feb0214e73",
+ "assignee": null,
+ "assignees": [],
+ "requested_reviewers": [],
+ "requested_teams": [],
+ "labels": [],
+ "milestone": null,
+ "draft": false,
+ "commits_url": "https://api.github.com/repos/techpillars-oy/test1/pulls/1/commits",
+ "review_comments_url": "https://api.github.com/repos/techpillars-oy/test1/pulls/1/comments",
+ "review_comment_url": "https://api.github.com/repos/techpillars-oy/test1/pulls/comments{/number}",
+ "comments_url": "https://api.github.com/repos/techpillars-oy/test1/issues/1/comments",
+ "statuses_url": "https://api.github.com/repos/techpillars-oy/test1/statuses/493ba2f67d61b69550a9b3bef4348bccf49cde82",
+ "head": {
+ "label": "techpillars-oy:feat/webhook",
+ "ref": "feat/webhook",
+ "sha": "493ba2f67d61b69550a9b3bef4348bccf49cde82",
+ "user": {
+ "login": "techpillars-oy",
+ "id": 205471033,
+ "node_id": "O_kgDODD89OQ",
+ "avatar_url": "https://avatars.githubusercontent.com/u/205471033?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/techpillars-oy",
+ "html_url": "https://github.com/techpillars-oy",
+ "followers_url": "https://api.github.com/users/techpillars-oy/followers",
+ "following_url": "https://api.github.com/users/techpillars-oy/following{/other_user}",
+ "gists_url": "https://api.github.com/users/techpillars-oy/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/techpillars-oy/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/techpillars-oy/subscriptions",
+ "organizations_url": "https://api.github.com/users/techpillars-oy/orgs",
+ "repos_url": "https://api.github.com/users/techpillars-oy/repos",
+ "events_url": "https://api.github.com/users/techpillars-oy/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/techpillars-oy/received_events",
+ "type": "Organization",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "repo": {
+ "id": 957257496,
+ "node_id": "R_kgDOOQ6XGA",
+ "name": "test1",
+ "full_name": "techpillars-oy/test1",
+ "private": false,
+ "owner": {
+ "login": "techpillars-oy",
+ "id": 205471033,
+ "node_id": "O_kgDODD89OQ",
+ "avatar_url": "https://avatars.githubusercontent.com/u/205471033?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/techpillars-oy",
+ "html_url": "https://github.com/techpillars-oy",
+ "followers_url": "https://api.github.com/users/techpillars-oy/followers",
+ "following_url": "https://api.github.com/users/techpillars-oy/following{/other_user}",
+ "gists_url": "https://api.github.com/users/techpillars-oy/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/techpillars-oy/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/techpillars-oy/subscriptions",
+ "organizations_url": "https://api.github.com/users/techpillars-oy/orgs",
+ "repos_url": "https://api.github.com/users/techpillars-oy/repos",
+ "events_url": "https://api.github.com/users/techpillars-oy/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/techpillars-oy/received_events",
+ "type": "Organization",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "html_url": "https://github.com/techpillars-oy/test1",
+ "description": null,
+ "fork": false,
+ "url": "https://api.github.com/repos/techpillars-oy/test1",
+ "forks_url": "https://api.github.com/repos/techpillars-oy/test1/forks",
+ "keys_url": "https://api.github.com/repos/techpillars-oy/test1/keys{/key_id}",
+ "collaborators_url": "https://api.github.com/repos/techpillars-oy/test1/collaborators{/collaborator}",
+ "teams_url": "https://api.github.com/repos/techpillars-oy/test1/teams",
+ "hooks_url": "https://api.github.com/repos/techpillars-oy/test1/hooks",
+ "issue_events_url": "https://api.github.com/repos/techpillars-oy/test1/issues/events{/number}",
+ "events_url": "https://api.github.com/repos/techpillars-oy/test1/events",
+ "assignees_url": "https://api.github.com/repos/techpillars-oy/test1/assignees{/user}",
+ "branches_url": "https://api.github.com/repos/techpillars-oy/test1/branches{/branch}",
+ "tags_url": "https://api.github.com/repos/techpillars-oy/test1/tags",
+ "blobs_url": "https://api.github.com/repos/techpillars-oy/test1/git/blobs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/techpillars-oy/test1/git/tags{/sha}",
+ "git_refs_url": "https://api.github.com/repos/techpillars-oy/test1/git/refs{/sha}",
+ "trees_url": "https://api.github.com/repos/techpillars-oy/test1/git/trees{/sha}",
+ "statuses_url": "https://api.github.com/repos/techpillars-oy/test1/statuses/{sha}",
+ "languages_url": "https://api.github.com/repos/techpillars-oy/test1/languages",
+ "stargazers_url": "https://api.github.com/repos/techpillars-oy/test1/stargazers",
+ "contributors_url": "https://api.github.com/repos/techpillars-oy/test1/contributors",
+ "subscribers_url": "https://api.github.com/repos/techpillars-oy/test1/subscribers",
+ "subscription_url": "https://api.github.com/repos/techpillars-oy/test1/subscription",
+ "commits_url": "https://api.github.com/repos/techpillars-oy/test1/commits{/sha}",
+ "git_commits_url": "https://api.github.com/repos/techpillars-oy/test1/git/commits{/sha}",
+ "comments_url": "https://api.github.com/repos/techpillars-oy/test1/comments{/number}",
+ "issue_comment_url": "https://api.github.com/repos/techpillars-oy/test1/issues/comments{/number}",
+ "contents_url": "https://api.github.com/repos/techpillars-oy/test1/contents/{+path}",
+ "compare_url": "https://api.github.com/repos/techpillars-oy/test1/compare/{base}...{head}",
+ "merges_url": "https://api.github.com/repos/techpillars-oy/test1/merges",
+ "archive_url": "https://api.github.com/repos/techpillars-oy/test1/{archive_format}{/ref}",
+ "downloads_url": "https://api.github.com/repos/techpillars-oy/test1/downloads",
+ "issues_url": "https://api.github.com/repos/techpillars-oy/test1/issues{/number}",
+ "pulls_url": "https://api.github.com/repos/techpillars-oy/test1/pulls{/number}",
+ "milestones_url": "https://api.github.com/repos/techpillars-oy/test1/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/techpillars-oy/test1/notifications{?since,all,participating}",
+ "labels_url": "https://api.github.com/repos/techpillars-oy/test1/labels{/name}",
+ "releases_url": "https://api.github.com/repos/techpillars-oy/test1/releases{/id}",
+ "deployments_url": "https://api.github.com/repos/techpillars-oy/test1/deployments",
+ "created_at": "2025-03-29T23:13:47Z",
+ "updated_at": "2025-03-29T23:15:43Z",
+ "pushed_at": "2025-03-29T23:18:26Z",
+ "git_url": "git://github.com/techpillars-oy/test1.git",
+ "ssh_url": "[email protected]:techpillars-oy/test1.git",
+ "clone_url": "https://github.com/techpillars-oy/test1.git",
+ "svn_url": "https://github.com/techpillars-oy/test1",
+ "homepage": null,
+ "size": 0,
+ "stargazers_count": 0,
+ "watchers_count": 0,
+ "language": null,
+ "has_issues": true,
+ "has_projects": true,
+ "has_downloads": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_discussions": false,
+ "forks_count": 0,
+ "mirror_url": null,
+ "archived": false,
+ "disabled": false,
+ "open_issues_count": 1,
+ "license": null,
+ "allow_forking": true,
+ "is_template": false,
+ "web_commit_signoff_required": false,
+ "topics": [],
+ "visibility": "public",
+ "forks": 0,
+ "open_issues": 1,
+ "watchers": 0,
+ "default_branch": "main",
+ "allow_squash_merge": true,
+ "allow_merge_commit": true,
+ "allow_rebase_merge": true,
+ "allow_auto_merge": false,
+ "delete_branch_on_merge": false,
+ "allow_update_branch": false,
+ "use_squash_pr_title_as_default": false,
+ "squash_merge_commit_message": "COMMIT_MESSAGES",
+ "squash_merge_commit_title": "COMMIT_OR_PR_TITLE",
+ "merge_commit_message": "PR_TITLE",
+ "merge_commit_title": "MERGE_MESSAGE"
+ }
+ },
+ "base": {
+ "label": "techpillars-oy:main",
+ "ref": "main",
+ "sha": "322299dc0d8a600f84909541ad88fd3f6a15df62",
+ "user": {
+ "login": "techpillars-oy",
+ "id": 205471033,
+ "node_id": "O_kgDODD89OQ",
+ "avatar_url": "https://avatars.githubusercontent.com/u/205471033?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/techpillars-oy",
+ "html_url": "https://github.com/techpillars-oy",
+ "followers_url": "https://api.github.com/users/techpillars-oy/followers",
+ "following_url": "https://api.github.com/users/techpillars-oy/following{/other_user}",
+ "gists_url": "https://api.github.com/users/techpillars-oy/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/techpillars-oy/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/techpillars-oy/subscriptions",
+ "organizations_url": "https://api.github.com/users/techpillars-oy/orgs",
+ "repos_url": "https://api.github.com/users/techpillars-oy/repos",
+ "events_url": "https://api.github.com/users/techpillars-oy/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/techpillars-oy/received_events",
+ "type": "Organization",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "repo": {
+ "id": 957257496,
+ "node_id": "R_kgDOOQ6XGA",
+ "name": "test1",
+ "full_name": "techpillars-oy/test1",
+ "private": false,
+ "owner": {
+ "login": "techpillars-oy",
+ "id": 205471033,
+ "node_id": "O_kgDODD89OQ",
+ "avatar_url": "https://avatars.githubusercontent.com/u/205471033?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/techpillars-oy",
+ "html_url": "https://github.com/techpillars-oy",
+ "followers_url": "https://api.github.com/users/techpillars-oy/followers",
+ "following_url": "https://api.github.com/users/techpillars-oy/following{/other_user}",
+ "gists_url": "https://api.github.com/users/techpillars-oy/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/techpillars-oy/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/techpillars-oy/subscriptions",
+ "organizations_url": "https://api.github.com/users/techpillars-oy/orgs",
+ "repos_url": "https://api.github.com/users/techpillars-oy/repos",
+ "events_url": "https://api.github.com/users/techpillars-oy/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/techpillars-oy/received_events",
+ "type": "Organization",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "html_url": "https://github.com/techpillars-oy/test1",
+ "description": null,
+ "fork": false,
+ "url": "https://api.github.com/repos/techpillars-oy/test1",
+ "forks_url": "https://api.github.com/repos/techpillars-oy/test1/forks",
+ "keys_url": "https://api.github.com/repos/techpillars-oy/test1/keys{/key_id}",
+ "collaborators_url": "https://api.github.com/repos/techpillars-oy/test1/collaborators{/collaborator}",
+ "teams_url": "https://api.github.com/repos/techpillars-oy/test1/teams",
+ "hooks_url": "https://api.github.com/repos/techpillars-oy/test1/hooks",
+ "issue_events_url": "https://api.github.com/repos/techpillars-oy/test1/issues/events{/number}",
+ "events_url": "https://api.github.com/repos/techpillars-oy/test1/events",
+ "assignees_url": "https://api.github.com/repos/techpillars-oy/test1/assignees{/user}",
+ "branches_url": "https://api.github.com/repos/techpillars-oy/test1/branches{/branch}",
+ "tags_url": "https://api.github.com/repos/techpillars-oy/test1/tags",
+ "blobs_url": "https://api.github.com/repos/techpillars-oy/test1/git/blobs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/techpillars-oy/test1/git/tags{/sha}",
+ "git_refs_url": "https://api.github.com/repos/techpillars-oy/test1/git/refs{/sha}",
+ "trees_url": "https://api.github.com/repos/techpillars-oy/test1/git/trees{/sha}",
+ "statuses_url": "https://api.github.com/repos/techpillars-oy/test1/statuses/{sha}",
+ "languages_url": "https://api.github.com/repos/techpillars-oy/test1/languages",
+ "stargazers_url": "https://api.github.com/repos/techpillars-oy/test1/stargazers",
+ "contributors_url": "https://api.github.com/repos/techpillars-oy/test1/contributors",
+ "subscribers_url": "https://api.github.com/repos/techpillars-oy/test1/subscribers",
+ "subscription_url": "https://api.github.com/repos/techpillars-oy/test1/subscription",
+ "commits_url": "https://api.github.com/repos/techpillars-oy/test1/commits{/sha}",
+ "git_commits_url": "https://api.github.com/repos/techpillars-oy/test1/git/commits{/sha}",
+ "comments_url": "https://api.github.com/repos/techpillars-oy/test1/comments{/number}",
+ "issue_comment_url": "https://api.github.com/repos/techpillars-oy/test1/issues/comments{/number}",
+ "contents_url": "https://api.github.com/repos/techpillars-oy/test1/contents/{+path}",
+ "compare_url": "https://api.github.com/repos/techpillars-oy/test1/compare/{base}...{head}",
+ "merges_url": "https://api.github.com/repos/techpillars-oy/test1/merges",
+ "archive_url": "https://api.github.com/repos/techpillars-oy/test1/{archive_format}{/ref}",
+ "downloads_url": "https://api.github.com/repos/techpillars-oy/test1/downloads",
+ "issues_url": "https://api.github.com/repos/techpillars-oy/test1/issues{/number}",
+ "pulls_url": "https://api.github.com/repos/techpillars-oy/test1/pulls{/number}",
+ "milestones_url": "https://api.github.com/repos/techpillars-oy/test1/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/techpillars-oy/test1/notifications{?since,all,participating}",
+ "labels_url": "https://api.github.com/repos/techpillars-oy/test1/labels{/name}",
+ "releases_url": "https://api.github.com/repos/techpillars-oy/test1/releases{/id}",
+ "deployments_url": "https://api.github.com/repos/techpillars-oy/test1/deployments",
+ "created_at": "2025-03-29T23:13:47Z",
+ "updated_at": "2025-03-29T23:15:43Z",
+ "pushed_at": "2025-03-29T23:18:26Z",
+ "git_url": "git://github.com/techpillars-oy/test1.git",
+ "ssh_url": "[email protected]:techpillars-oy/test1.git",
+ "clone_url": "https://github.com/techpillars-oy/test1.git",
+ "svn_url": "https://github.com/techpillars-oy/test1",
+ "homepage": null,
+ "size": 0,
+ "stargazers_count": 0,
+ "watchers_count": 0,
+ "language": null,
+ "has_issues": true,
+ "has_projects": true,
+ "has_downloads": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_discussions": false,
+ "forks_count": 0,
+ "mirror_url": null,
+ "archived": false,
+ "disabled": false,
+ "open_issues_count": 1,
+ "license": null,
+ "allow_forking": true,
+ "is_template": false,
+ "web_commit_signoff_required": false,
+ "topics": [],
+ "visibility": "public",
+ "forks": 0,
+ "open_issues": 1,
+ "watchers": 0,
+ "default_branch": "main",
+ "allow_squash_merge": true,
+ "allow_merge_commit": true,
+ "allow_rebase_merge": true,
+ "allow_auto_merge": false,
+ "delete_branch_on_merge": false,
+ "allow_update_branch": false,
+ "use_squash_pr_title_as_default": false,
+ "squash_merge_commit_message": "COMMIT_MESSAGES",
+ "squash_merge_commit_title": "COMMIT_OR_PR_TITLE",
+ "merge_commit_message": "PR_TITLE",
+ "merge_commit_title": "MERGE_MESSAGE"
+ }
+ },
+ "_links": {
+ "self": {
+ "href": "https://api.github.com/repos/techpillars-oy/test1/pulls/1"
+ },
+ "html": {
+ "href": "https://github.com/techpillars-oy/test1/pull/1"
+ },
+ "issue": {
+ "href": "https://api.github.com/repos/techpillars-oy/test1/issues/1"
+ },
+ "comments": {
+ "href": "https://api.github.com/repos/techpillars-oy/test1/issues/1/comments"
+ },
+ "review_comments": {
+ "href": "https://api.github.com/repos/techpillars-oy/test1/pulls/1/comments"
+ },
+ "review_comment": {
+ "href": "https://api.github.com/repos/techpillars-oy/test1/pulls/comments{/number}"
+ },
+ "commits": {
+ "href": "https://api.github.com/repos/techpillars-oy/test1/pulls/1/commits"
+ },
+ "statuses": {
+ "href": "https://api.github.com/repos/techpillars-oy/test1/statuses/493ba2f67d61b69550a9b3bef4348bccf49cde82"
+ }
+ },
+ "author_association": "CONTRIBUTOR",
+ "auto_merge": null,
+ "active_lock_reason": null,
+ "merged": false,
+ "mergeable": true,
+ "rebaseable": false,
+ "mergeable_state": "clean",
+ "merged_by": null,
+ "comments": 0,
+ "review_comments": 0,
+ "maintainer_can_modify": false,
+ "commits": 3,
+ "additions": 2,
+ "deletions": 1,
+ "changed_files": 1
+ },
+ "repository": {
+ "id": 957257496,
+ "node_id": "R_kgDOOQ6XGA",
+ "name": "test1",
+ "full_name": "techpillars-oy/test1",
+ "private": false,
+ "owner": {
+ "login": "techpillars-oy",
+ "id": 205471033,
+ "node_id": "O_kgDODD89OQ",
+ "avatar_url": "https://avatars.githubusercontent.com/u/205471033?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/techpillars-oy",
+ "html_url": "https://github.com/techpillars-oy",
+ "followers_url": "https://api.github.com/users/techpillars-oy/followers",
+ "following_url": "https://api.github.com/users/techpillars-oy/following{/other_user}",
+ "gists_url": "https://api.github.com/users/techpillars-oy/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/techpillars-oy/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/techpillars-oy/subscriptions",
+ "organizations_url": "https://api.github.com/users/techpillars-oy/orgs",
+ "repos_url": "https://api.github.com/users/techpillars-oy/repos",
+ "events_url": "https://api.github.com/users/techpillars-oy/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/techpillars-oy/received_events",
+ "type": "Organization",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "html_url": "https://github.com/techpillars-oy/test1",
+ "description": null,
+ "fork": false,
+ "url": "https://api.github.com/repos/techpillars-oy/test1",
+ "forks_url": "https://api.github.com/repos/techpillars-oy/test1/forks",
+ "keys_url": "https://api.github.com/repos/techpillars-oy/test1/keys{/key_id}",
+ "collaborators_url": "https://api.github.com/repos/techpillars-oy/test1/collaborators{/collaborator}",
+ "teams_url": "https://api.github.com/repos/techpillars-oy/test1/teams",
+ "hooks_url": "https://api.github.com/repos/techpillars-oy/test1/hooks",
+ "issue_events_url": "https://api.github.com/repos/techpillars-oy/test1/issues/events{/number}",
+ "events_url": "https://api.github.com/repos/techpillars-oy/test1/events",
+ "assignees_url": "https://api.github.com/repos/techpillars-oy/test1/assignees{/user}",
+ "branches_url": "https://api.github.com/repos/techpillars-oy/test1/branches{/branch}",
+ "tags_url": "https://api.github.com/repos/techpillars-oy/test1/tags",
+ "blobs_url": "https://api.github.com/repos/techpillars-oy/test1/git/blobs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/techpillars-oy/test1/git/tags{/sha}",
+ "git_refs_url": "https://api.github.com/repos/techpillars-oy/test1/git/refs{/sha}",
+ "trees_url": "https://api.github.com/repos/techpillars-oy/test1/git/trees{/sha}",
+ "statuses_url": "https://api.github.com/repos/techpillars-oy/test1/statuses/{sha}",
+ "languages_url": "https://api.github.com/repos/techpillars-oy/test1/languages",
+ "stargazers_url": "https://api.github.com/repos/techpillars-oy/test1/stargazers",
+ "contributors_url": "https://api.github.com/repos/techpillars-oy/test1/contributors",
+ "subscribers_url": "https://api.github.com/repos/techpillars-oy/test1/subscribers",
+ "subscription_url": "https://api.github.com/repos/techpillars-oy/test1/subscription",
+ "commits_url": "https://api.github.com/repos/techpillars-oy/test1/commits{/sha}",
+ "git_commits_url": "https://api.github.com/repos/techpillars-oy/test1/git/commits{/sha}",
+ "comments_url": "https://api.github.com/repos/techpillars-oy/test1/comments{/number}",
+ "issue_comment_url": "https://api.github.com/repos/techpillars-oy/test1/issues/comments{/number}",
+ "contents_url": "https://api.github.com/repos/techpillars-oy/test1/contents/{+path}",
+ "compare_url": "https://api.github.com/repos/techpillars-oy/test1/compare/{base}...{head}",
+ "merges_url": "https://api.github.com/repos/techpillars-oy/test1/merges",
+ "archive_url": "https://api.github.com/repos/techpillars-oy/test1/{archive_format}{/ref}",
+ "downloads_url": "https://api.github.com/repos/techpillars-oy/test1/downloads",
+ "issues_url": "https://api.github.com/repos/techpillars-oy/test1/issues{/number}",
+ "pulls_url": "https://api.github.com/repos/techpillars-oy/test1/pulls{/number}",
+ "milestones_url": "https://api.github.com/repos/techpillars-oy/test1/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/techpillars-oy/test1/notifications{?since,all,participating}",
+ "labels_url": "https://api.github.com/repos/techpillars-oy/test1/labels{/name}",
+ "releases_url": "https://api.github.com/repos/techpillars-oy/test1/releases{/id}",
+ "deployments_url": "https://api.github.com/repos/techpillars-oy/test1/deployments",
+ "created_at": "2025-03-29T23:13:47Z",
+ "updated_at": "2025-03-29T23:15:43Z",
+ "pushed_at": "2025-03-29T23:18:26Z",
+ "git_url": "git://github.com/techpillars-oy/test1.git",
+ "ssh_url": "[email protected]:techpillars-oy/test1.git",
+ "clone_url": "https://github.com/techpillars-oy/test1.git",
+ "svn_url": "https://github.com/techpillars-oy/test1",
+ "homepage": null,
+ "size": 0,
+ "stargazers_count": 0,
+ "watchers_count": 0,
+ "language": null,
+ "has_issues": true,
+ "has_projects": true,
+ "has_downloads": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_discussions": false,
+ "forks_count": 0,
+ "mirror_url": null,
+ "archived": false,
+ "disabled": false,
+ "open_issues_count": 1,
+ "license": null,
+ "allow_forking": true,
+ "is_template": false,
+ "web_commit_signoff_required": false,
+ "topics": [],
+ "visibility": "public",
+ "forks": 0,
+ "open_issues": 1,
+ "watchers": 0,
+ "default_branch": "main",
+ "custom_properties": {}
+ },
+ "organization": {
+ "login": "techpillars-oy",
+ "id": 205471033,
+ "node_id": "O_kgDODD89OQ",
+ "url": "https://api.github.com/orgs/techpillars-oy",
+ "repos_url": "https://api.github.com/orgs/techpillars-oy/repos",
+ "events_url": "https://api.github.com/orgs/techpillars-oy/events",
+ "hooks_url": "https://api.github.com/orgs/techpillars-oy/hooks",
+ "issues_url": "https://api.github.com/orgs/techpillars-oy/issues",
+ "members_url": "https://api.github.com/orgs/techpillars-oy/members{/member}",
+ "public_members_url": "https://api.github.com/orgs/techpillars-oy/public_members{/member}",
+ "avatar_url": "https://avatars.githubusercontent.com/u/205471033?v=4",
+ "description": null
+ },
+ "enterprise": {
+ "id": 308188,
+ "slug": "techpillars",
+ "name": "TechPillars Oy",
+ "node_id": "E_kgDOAASz3A",
+ "avatar_url": "https://avatars.githubusercontent.com/b/308188?v=4",
+ "description": null,
+ "website_url": null,
+ "html_url": "https://github.com/enterprises/techpillars",
+ "created_at": "2025-03-29T23:09:48Z",
+ "updated_at": "2025-03-29T23:11:21Z"
+ },
+ "sender": {
+ "login": "soheil-star01",
+ "id": 75124326,
+ "node_id": "MDQ6VXNlcjc1MTI0MzI2",
+ "avatar_url": "https://avatars.githubusercontent.com/u/75124326?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/soheil-star01",
+ "html_url": "https://github.com/soheil-star01",
+ "followers_url": "https://api.github.com/users/soheil-star01/followers",
+ "following_url": "https://api.github.com/users/soheil-star01/following{/other_user}",
+ "gists_url": "https://api.github.com/users/soheil-star01/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/soheil-star01/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/soheil-star01/subscriptions",
+ "organizations_url": "https://api.github.com/users/soheil-star01/orgs",
+ "repos_url": "https://api.github.com/users/soheil-star01/repos",
+ "events_url": "https://api.github.com/users/soheil-star01/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/soheil-star01/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ }
+}
diff --git a/zerver/webhooks/github/fixtures/pull_request__labeled.json b/zerver/webhooks/github/fixtures/pull_request__labeled.json
new file mode 100644
index 00000000000..75b6ebda247
--- /dev/null
+++ b/zerver/webhooks/github/fixtures/pull_request__labeled.json
@@ -0,0 +1,514 @@
+{
+ "action": "labeled",
+ "number": 1,
+ "pull_request": {
+ "url": "https://api.github.com/repos/soheil-star01/soheil-star01/pulls/1",
+ "id": 2427231083,
+ "node_id": "PR_kwDOJqrH6c6QrJtr",
+ "html_url": "https://github.com/soheil-star01/soheil-star01/pull/1",
+ "diff_url": "https://github.com/soheil-star01/soheil-star01/pull/1.diff",
+ "patch_url": "https://github.com/soheil-star01/soheil-star01/pull/1.patch",
+ "issue_url": "https://api.github.com/repos/soheil-star01/soheil-star01/issues/1",
+ "number": 1,
+ "state": "open",
+ "locked": false,
+ "title": "test webhook",
+ "user": {
+ "login": "soheil-star01",
+ "id": 75124326,
+ "node_id": "MDQ6VXNlcjc1MTI0MzI2",
+ "avatar_url": "https://avatars.githubusercontent.com/u/75124326?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/soheil-star01",
+ "html_url": "https://github.com/soheil-star01",
+ "followers_url": "https://api.github.com/users/soheil-star01/followers",
+ "following_url": "https://api.github.com/users/soheil-star01/following{/other_user}",
+ "gists_url": "https://api.github.com/users/soheil-star01/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/soheil-star01/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/soheil-star01/subscriptions",
+ "organizations_url": "https://api.github.com/users/soheil-star01/orgs",
+ "repos_url": "https://api.github.com/users/soheil-star01/repos",
+ "events_url": "https://api.github.com/users/soheil-star01/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/soheil-star01/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "body": null,
+ "created_at": "2025-03-29T20:08:40Z",
+ "updated_at": "2025-03-29T20:09:00Z",
+ "closed_at": null,
+ "merged_at": null,
+ "merge_commit_sha": "4e0ff7451e6e06d8ca9d7a7de7ad5d7135dd5490",
+ "assignee": null,
+ "assignees": [],
+ "requested_reviewers": [],
+ "requested_teams": [],
+ "labels": [
+ {
+ "id": 5575139419,
+ "node_id": "LA_kwDOJqrH6c8AAAABTE3gWw",
+ "url": "https://api.github.com/repos/soheil-star01/soheil-star01/labels/documentation",
+ "name": "documentation",
+ "color": "0075ca",
+ "default": true,
+ "description": "Improvements or additions to documentation"
+ }
+ ],
+ "milestone": null,
+ "draft": false,
+ "commits_url": "https://api.github.com/repos/soheil-star01/soheil-star01/pulls/1/commits",
+ "review_comments_url": "https://api.github.com/repos/soheil-star01/soheil-star01/pulls/1/comments",
+ "review_comment_url": "https://api.github.com/repos/soheil-star01/soheil-star01/pulls/comments{/number}",
+ "comments_url": "https://api.github.com/repos/soheil-star01/soheil-star01/issues/1/comments",
+ "statuses_url": "https://api.github.com/repos/soheil-star01/soheil-star01/statuses/87d7bbbd605ee812b005793c01b0c567dc732bdc",
+ "head": {
+ "label": "soheil-star01:fix/test_webhook",
+ "ref": "fix/test_webhook",
+ "sha": "87d7bbbd605ee812b005793c01b0c567dc732bdc",
+ "user": {
+ "login": "soheil-star01",
+ "id": 75124326,
+ "node_id": "MDQ6VXNlcjc1MTI0MzI2",
+ "avatar_url": "https://avatars.githubusercontent.com/u/75124326?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/soheil-star01",
+ "html_url": "https://github.com/soheil-star01",
+ "followers_url": "https://api.github.com/users/soheil-star01/followers",
+ "following_url": "https://api.github.com/users/soheil-star01/following{/other_user}",
+ "gists_url": "https://api.github.com/users/soheil-star01/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/soheil-star01/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/soheil-star01/subscriptions",
+ "organizations_url": "https://api.github.com/users/soheil-star01/orgs",
+ "repos_url": "https://api.github.com/users/soheil-star01/repos",
+ "events_url": "https://api.github.com/users/soheil-star01/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/soheil-star01/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "repo": {
+ "id": 648726505,
+ "node_id": "R_kgDOJqrH6Q",
+ "name": "soheil-star01",
+ "full_name": "soheil-star01/soheil-star01",
+ "private": false,
+ "owner": {
+ "login": "soheil-star01",
+ "id": 75124326,
+ "node_id": "MDQ6VXNlcjc1MTI0MzI2",
+ "avatar_url": "https://avatars.githubusercontent.com/u/75124326?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/soheil-star01",
+ "html_url": "https://github.com/soheil-star01",
+ "followers_url": "https://api.github.com/users/soheil-star01/followers",
+ "following_url": "https://api.github.com/users/soheil-star01/following{/other_user}",
+ "gists_url": "https://api.github.com/users/soheil-star01/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/soheil-star01/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/soheil-star01/subscriptions",
+ "organizations_url": "https://api.github.com/users/soheil-star01/orgs",
+ "repos_url": "https://api.github.com/users/soheil-star01/repos",
+ "events_url": "https://api.github.com/users/soheil-star01/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/soheil-star01/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "html_url": "https://github.com/soheil-star01/soheil-star01",
+ "description": null,
+ "fork": false,
+ "url": "https://api.github.com/repos/soheil-star01/soheil-star01",
+ "forks_url": "https://api.github.com/repos/soheil-star01/soheil-star01/forks",
+ "keys_url": "https://api.github.com/repos/soheil-star01/soheil-star01/keys{/key_id}",
+ "collaborators_url": "https://api.github.com/repos/soheil-star01/soheil-star01/collaborators{/collaborator}",
+ "teams_url": "https://api.github.com/repos/soheil-star01/soheil-star01/teams",
+ "hooks_url": "https://api.github.com/repos/soheil-star01/soheil-star01/hooks",
+ "issue_events_url": "https://api.github.com/repos/soheil-star01/soheil-star01/issues/events{/number}",
+ "events_url": "https://api.github.com/repos/soheil-star01/soheil-star01/events",
+ "assignees_url": "https://api.github.com/repos/soheil-star01/soheil-star01/assignees{/user}",
+ "branches_url": "https://api.github.com/repos/soheil-star01/soheil-star01/branches{/branch}",
+ "tags_url": "https://api.github.com/repos/soheil-star01/soheil-star01/tags",
+ "blobs_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/blobs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/tags{/sha}",
+ "git_refs_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/refs{/sha}",
+ "trees_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/trees{/sha}",
+ "statuses_url": "https://api.github.com/repos/soheil-star01/soheil-star01/statuses/{sha}",
+ "languages_url": "https://api.github.com/repos/soheil-star01/soheil-star01/languages",
+ "stargazers_url": "https://api.github.com/repos/soheil-star01/soheil-star01/stargazers",
+ "contributors_url": "https://api.github.com/repos/soheil-star01/soheil-star01/contributors",
+ "subscribers_url": "https://api.github.com/repos/soheil-star01/soheil-star01/subscribers",
+ "subscription_url": "https://api.github.com/repos/soheil-star01/soheil-star01/subscription",
+ "commits_url": "https://api.github.com/repos/soheil-star01/soheil-star01/commits{/sha}",
+ "git_commits_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/commits{/sha}",
+ "comments_url": "https://api.github.com/repos/soheil-star01/soheil-star01/comments{/number}",
+ "issue_comment_url": "https://api.github.com/repos/soheil-star01/soheil-star01/issues/comments{/number}",
+ "contents_url": "https://api.github.com/repos/soheil-star01/soheil-star01/contents/{+path}",
+ "compare_url": "https://api.github.com/repos/soheil-star01/soheil-star01/compare/{base}...{head}",
+ "merges_url": "https://api.github.com/repos/soheil-star01/soheil-star01/merges",
+ "archive_url": "https://api.github.com/repos/soheil-star01/soheil-star01/{archive_format}{/ref}",
+ "downloads_url": "https://api.github.com/repos/soheil-star01/soheil-star01/downloads",
+ "issues_url": "https://api.github.com/repos/soheil-star01/soheil-star01/issues{/number}",
+ "pulls_url": "https://api.github.com/repos/soheil-star01/soheil-star01/pulls{/number}",
+ "milestones_url": "https://api.github.com/repos/soheil-star01/soheil-star01/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/soheil-star01/soheil-star01/notifications{?since,all,participating}",
+ "labels_url": "https://api.github.com/repos/soheil-star01/soheil-star01/labels{/name}",
+ "releases_url": "https://api.github.com/repos/soheil-star01/soheil-star01/releases{/id}",
+ "deployments_url": "https://api.github.com/repos/soheil-star01/soheil-star01/deployments",
+ "created_at": "2023-06-02T16:49:34Z",
+ "updated_at": "2023-06-02T16:49:35Z",
+ "pushed_at": "2025-03-29T20:08:21Z",
+ "git_url": "git://github.com/soheil-star01/soheil-star01.git",
+ "ssh_url": "[email protected]:soheil-star01/soheil-star01.git",
+ "clone_url": "https://github.com/soheil-star01/soheil-star01.git",
+ "svn_url": "https://github.com/soheil-star01/soheil-star01",
+ "homepage": null,
+ "size": 2,
+ "stargazers_count": 0,
+ "watchers_count": 0,
+ "language": null,
+ "has_issues": true,
+ "has_projects": true,
+ "has_downloads": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_discussions": false,
+ "forks_count": 0,
+ "mirror_url": null,
+ "archived": false,
+ "disabled": false,
+ "open_issues_count": 1,
+ "license": null,
+ "allow_forking": true,
+ "is_template": false,
+ "web_commit_signoff_required": false,
+ "topics": [],
+ "visibility": "public",
+ "forks": 0,
+ "open_issues": 1,
+ "watchers": 0,
+ "default_branch": "main",
+ "allow_squash_merge": true,
+ "allow_merge_commit": true,
+ "allow_rebase_merge": true,
+ "allow_auto_merge": false,
+ "delete_branch_on_merge": false,
+ "allow_update_branch": false,
+ "use_squash_pr_title_as_default": false,
+ "squash_merge_commit_message": "COMMIT_MESSAGES",
+ "squash_merge_commit_title": "COMMIT_OR_PR_TITLE",
+ "merge_commit_message": "PR_TITLE",
+ "merge_commit_title": "MERGE_MESSAGE"
+ }
+ },
+ "base": {
+ "label": "soheil-star01:main",
+ "ref": "main",
+ "sha": "e01f5c370f5a49b296d95ad78a31fa4f9b58b17e",
+ "user": {
+ "login": "soheil-star01",
+ "id": 75124326,
+ "node_id": "MDQ6VXNlcjc1MTI0MzI2",
+ "avatar_url": "https://avatars.githubusercontent.com/u/75124326?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/soheil-star01",
+ "html_url": "https://github.com/soheil-star01",
+ "followers_url": "https://api.github.com/users/soheil-star01/followers",
+ "following_url": "https://api.github.com/users/soheil-star01/following{/other_user}",
+ "gists_url": "https://api.github.com/users/soheil-star01/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/soheil-star01/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/soheil-star01/subscriptions",
+ "organizations_url": "https://api.github.com/users/soheil-star01/orgs",
+ "repos_url": "https://api.github.com/users/soheil-star01/repos",
+ "events_url": "https://api.github.com/users/soheil-star01/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/soheil-star01/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "repo": {
+ "id": 648726505,
+ "node_id": "R_kgDOJqrH6Q",
+ "name": "soheil-star01",
+ "full_name": "soheil-star01/soheil-star01",
+ "private": false,
+ "owner": {
+ "login": "soheil-star01",
+ "id": 75124326,
+ "node_id": "MDQ6VXNlcjc1MTI0MzI2",
+ "avatar_url": "https://avatars.githubusercontent.com/u/75124326?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/soheil-star01",
+ "html_url": "https://github.com/soheil-star01",
+ "followers_url": "https://api.github.com/users/soheil-star01/followers",
+ "following_url": "https://api.github.com/users/soheil-star01/following{/other_user}",
+ "gists_url": "https://api.github.com/users/soheil-star01/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/soheil-star01/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/soheil-star01/subscriptions",
+ "organizations_url": "https://api.github.com/users/soheil-star01/orgs",
+ "repos_url": "https://api.github.com/users/soheil-star01/repos",
+ "events_url": "https://api.github.com/users/soheil-star01/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/soheil-star01/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "html_url": "https://github.com/soheil-star01/soheil-star01",
+ "description": null,
+ "fork": false,
+ "url": "https://api.github.com/repos/soheil-star01/soheil-star01",
+ "forks_url": "https://api.github.com/repos/soheil-star01/soheil-star01/forks",
+ "keys_url": "https://api.github.com/repos/soheil-star01/soheil-star01/keys{/key_id}",
+ "collaborators_url": "https://api.github.com/repos/soheil-star01/soheil-star01/collaborators{/collaborator}",
+ "teams_url": "https://api.github.com/repos/soheil-star01/soheil-star01/teams",
+ "hooks_url": "https://api.github.com/repos/soheil-star01/soheil-star01/hooks",
+ "issue_events_url": "https://api.github.com/repos/soheil-star01/soheil-star01/issues/events{/number}",
+ "events_url": "https://api.github.com/repos/soheil-star01/soheil-star01/events",
+ "assignees_url": "https://api.github.com/repos/soheil-star01/soheil-star01/assignees{/user}",
+ "branches_url": "https://api.github.com/repos/soheil-star01/soheil-star01/branches{/branch}",
+ "tags_url": "https://api.github.com/repos/soheil-star01/soheil-star01/tags",
+ "blobs_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/blobs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/tags{/sha}",
+ "git_refs_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/refs{/sha}",
+ "trees_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/trees{/sha}",
+ "statuses_url": "https://api.github.com/repos/soheil-star01/soheil-star01/statuses/{sha}",
+ "languages_url": "https://api.github.com/repos/soheil-star01/soheil-star01/languages",
+ "stargazers_url": "https://api.github.com/repos/soheil-star01/soheil-star01/stargazers",
+ "contributors_url": "https://api.github.com/repos/soheil-star01/soheil-star01/contributors",
+ "subscribers_url": "https://api.github.com/repos/soheil-star01/soheil-star01/subscribers",
+ "subscription_url": "https://api.github.com/repos/soheil-star01/soheil-star01/subscription",
+ "commits_url": "https://api.github.com/repos/soheil-star01/soheil-star01/commits{/sha}",
+ "git_commits_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/commits{/sha}",
+ "comments_url": "https://api.github.com/repos/soheil-star01/soheil-star01/comments{/number}",
+ "issue_comment_url": "https://api.github.com/repos/soheil-star01/soheil-star01/issues/comments{/number}",
+ "contents_url": "https://api.github.com/repos/soheil-star01/soheil-star01/contents/{+path}",
+ "compare_url": "https://api.github.com/repos/soheil-star01/soheil-star01/compare/{base}...{head}",
+ "merges_url": "https://api.github.com/repos/soheil-star01/soheil-star01/merges",
+ "archive_url": "https://api.github.com/repos/soheil-star01/soheil-star01/{archive_format}{/ref}",
+ "downloads_url": "https://api.github.com/repos/soheil-star01/soheil-star01/downloads",
+ "issues_url": "https://api.github.com/repos/soheil-star01/soheil-star01/issues{/number}",
+ "pulls_url": "https://api.github.com/repos/soheil-star01/soheil-star01/pulls{/number}",
+ "milestones_url": "https://api.github.com/repos/soheil-star01/soheil-star01/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/soheil-star01/soheil-star01/notifications{?since,all,participating}",
+ "labels_url": "https://api.github.com/repos/soheil-star01/soheil-star01/labels{/name}",
+ "releases_url": "https://api.github.com/repos/soheil-star01/soheil-star01/releases{/id}",
+ "deployments_url": "https://api.github.com/repos/soheil-star01/soheil-star01/deployments",
+ "created_at": "2023-06-02T16:49:34Z",
+ "updated_at": "2023-06-02T16:49:35Z",
+ "pushed_at": "2025-03-29T20:08:21Z",
+ "git_url": "git://github.com/soheil-star01/soheil-star01.git",
+ "ssh_url": "[email protected]:soheil-star01/soheil-star01.git",
+ "clone_url": "https://github.com/soheil-star01/soheil-star01.git",
+ "svn_url": "https://github.com/soheil-star01/soheil-star01",
+ "homepage": null,
+ "size": 2,
+ "stargazers_count": 0,
+ "watchers_count": 0,
+ "language": null,
+ "has_issues": true,
+ "has_projects": true,
+ "has_downloads": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_discussions": false,
+ "forks_count": 0,
+ "mirror_url": null,
+ "archived": false,
+ "disabled": false,
+ "open_issues_count": 1,
+ "license": null,
+ "allow_forking": true,
+ "is_template": false,
+ "web_commit_signoff_required": false,
+ "topics": [],
+ "visibility": "public",
+ "forks": 0,
+ "open_issues": 1,
+ "watchers": 0,
+ "default_branch": "main",
+ "allow_squash_merge": true,
+ "allow_merge_commit": true,
+ "allow_rebase_merge": true,
+ "allow_auto_merge": false,
+ "delete_branch_on_merge": false,
+ "allow_update_branch": false,
+ "use_squash_pr_title_as_default": false,
+ "squash_merge_commit_message": "COMMIT_MESSAGES",
+ "squash_merge_commit_title": "COMMIT_OR_PR_TITLE",
+ "merge_commit_message": "PR_TITLE",
+ "merge_commit_title": "MERGE_MESSAGE"
+ }
+ },
+ "_links": {
+ "self": {
+ "href": "https://api.github.com/repos/soheil-star01/soheil-star01/pulls/1"
+ },
+ "html": {
+ "href": "https://github.com/soheil-star01/soheil-star01/pull/1"
+ },
+ "issue": {
+ "href": "https://api.github.com/repos/soheil-star01/soheil-star01/issues/1"
+ },
+ "comments": {
+ "href": "https://api.github.com/repos/soheil-star01/soheil-star01/issues/1/comments"
+ },
+ "review_comments": {
+ "href": "https://api.github.com/repos/soheil-star01/soheil-star01/pulls/1/comments"
+ },
+ "review_comment": {
+ "href": "https://api.github.com/repos/soheil-star01/soheil-star01/pulls/comments{/number}"
+ },
+ "commits": {
+ "href": "https://api.github.com/repos/soheil-star01/soheil-star01/pulls/1/commits"
+ },
+ "statuses": {
+ "href": "https://api.github.com/repos/soheil-star01/soheil-star01/statuses/87d7bbbd605ee812b005793c01b0c567dc732bdc"
+ }
+ },
+ "author_association": "OWNER",
+ "auto_merge": null,
+ "active_lock_reason": null,
+ "merged": false,
+ "mergeable": true,
+ "rebaseable": true,
+ "mergeable_state": "clean",
+ "merged_by": null,
+ "comments": 0,
+ "review_comments": 0,
+ "maintainer_can_modify": false,
+ "commits": 1,
+ "additions": 1,
+ "deletions": 1,
+ "changed_files": 1
+ },
+ "label": {
+ "id": 5575139419,
+ "node_id": "LA_kwDOJqrH6c8AAAABTE3gWw",
+ "url": "https://api.github.com/repos/soheil-star01/soheil-star01/labels/documentation",
+ "name": "documentation",
+ "color": "0075ca",
+ "default": true,
+ "description": "Improvements or additions to documentation"
+ },
+ "repository": {
+ "id": 648726505,
+ "node_id": "R_kgDOJqrH6Q",
+ "name": "soheil-star01",
+ "full_name": "soheil-star01/soheil-star01",
+ "private": false,
+ "owner": {
+ "login": "soheil-star01",
+ "id": 75124326,
+ "node_id": "MDQ6VXNlcjc1MTI0MzI2",
+ "avatar_url": "https://avatars.githubusercontent.com/u/75124326?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/soheil-star01",
+ "html_url": "https://github.com/soheil-star01",
+ "followers_url": "https://api.github.com/users/soheil-star01/followers",
+ "following_url": "https://api.github.com/users/soheil-star01/following{/other_user}",
+ "gists_url": "https://api.github.com/users/soheil-star01/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/soheil-star01/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/soheil-star01/subscriptions",
+ "organizations_url": "https://api.github.com/users/soheil-star01/orgs",
+ "repos_url": "https://api.github.com/users/soheil-star01/repos",
+ "events_url": "https://api.github.com/users/soheil-star01/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/soheil-star01/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "html_url": "https://github.com/soheil-star01/soheil-star01",
+ "description": null,
+ "fork": false,
+ "url": "https://api.github.com/repos/soheil-star01/soheil-star01",
+ "forks_url": "https://api.github.com/repos/soheil-star01/soheil-star01/forks",
+ "keys_url": "https://api.github.com/repos/soheil-star01/soheil-star01/keys{/key_id}",
+ "collaborators_url": "https://api.github.com/repos/soheil-star01/soheil-star01/collaborators{/collaborator}",
+ "teams_url": "https://api.github.com/repos/soheil-star01/soheil-star01/teams",
+ "hooks_url": "https://api.github.com/repos/soheil-star01/soheil-star01/hooks",
+ "issue_events_url": "https://api.github.com/repos/soheil-star01/soheil-star01/issues/events{/number}",
+ "events_url": "https://api.github.com/repos/soheil-star01/soheil-star01/events",
+ "assignees_url": "https://api.github.com/repos/soheil-star01/soheil-star01/assignees{/user}",
+ "branches_url": "https://api.github.com/repos/soheil-star01/soheil-star01/branches{/branch}",
+ "tags_url": "https://api.github.com/repos/soheil-star01/soheil-star01/tags",
+ "blobs_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/blobs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/tags{/sha}",
+ "git_refs_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/refs{/sha}",
+ "trees_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/trees{/sha}",
+ "statuses_url": "https://api.github.com/repos/soheil-star01/soheil-star01/statuses/{sha}",
+ "languages_url": "https://api.github.com/repos/soheil-star01/soheil-star01/languages",
+ "stargazers_url": "https://api.github.com/repos/soheil-star01/soheil-star01/stargazers",
+ "contributors_url": "https://api.github.com/repos/soheil-star01/soheil-star01/contributors",
+ "subscribers_url": "https://api.github.com/repos/soheil-star01/soheil-star01/subscribers",
+ "subscription_url": "https://api.github.com/repos/soheil-star01/soheil-star01/subscription",
+ "commits_url": "https://api.github.com/repos/soheil-star01/soheil-star01/commits{/sha}",
+ "git_commits_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/commits{/sha}",
+ "comments_url": "https://api.github.com/repos/soheil-star01/soheil-star01/comments{/number}",
+ "issue_comment_url": "https://api.github.com/repos/soheil-star01/soheil-star01/issues/comments{/number}",
+ "contents_url": "https://api.github.com/repos/soheil-star01/soheil-star01/contents/{+path}",
+ "compare_url": "https://api.github.com/repos/soheil-star01/soheil-star01/compare/{base}...{head}",
+ "merges_url": "https://api.github.com/repos/soheil-star01/soheil-star01/merges",
+ "archive_url": "https://api.github.com/repos/soheil-star01/soheil-star01/{archive_format}{/ref}",
+ "downloads_url": "https://api.github.com/repos/soheil-star01/soheil-star01/downloads",
+ "issues_url": "https://api.github.com/repos/soheil-star01/soheil-star01/issues{/number}",
+ "pulls_url": "https://api.github.com/repos/soheil-star01/soheil-star01/pulls{/number}",
+ "milestones_url": "https://api.github.com/repos/soheil-star01/soheil-star01/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/soheil-star01/soheil-star01/notifications{?since,all,participating}",
+ "labels_url": "https://api.github.com/repos/soheil-star01/soheil-star01/labels{/name}",
+ "releases_url": "https://api.github.com/repos/soheil-star01/soheil-star01/releases{/id}",
+ "deployments_url": "https://api.github.com/repos/soheil-star01/soheil-star01/deployments",
+ "created_at": "2023-06-02T16:49:34Z",
+ "updated_at": "2023-06-02T16:49:35Z",
+ "pushed_at": "2025-03-29T20:08:21Z",
+ "git_url": "git://github.com/soheil-star01/soheil-star01.git",
+ "ssh_url": "[email protected]:soheil-star01/soheil-star01.git",
+ "clone_url": "https://github.com/soheil-star01/soheil-star01.git",
+ "svn_url": "https://github.com/soheil-star01/soheil-star01",
+ "homepage": null,
+ "size": 2,
+ "stargazers_count": 0,
+ "watchers_count": 0,
+ "language": null,
+ "has_issues": true,
+ "has_projects": true,
+ "has_downloads": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_discussions": false,
+ "forks_count": 0,
+ "mirror_url": null,
+ "archived": false,
+ "disabled": false,
+ "open_issues_count": 1,
+ "license": null,
+ "allow_forking": true,
+ "is_template": false,
+ "web_commit_signoff_required": false,
+ "topics": [],
+ "visibility": "public",
+ "forks": 0,
+ "open_issues": 1,
+ "watchers": 0,
+ "default_branch": "main"
+ },
+ "sender": {
+ "login": "soheil-star01",
+ "id": 75124326,
+ "node_id": "MDQ6VXNlcjc1MTI0MzI2",
+ "avatar_url": "https://avatars.githubusercontent.com/u/75124326?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/soheil-star01",
+ "html_url": "https://github.com/soheil-star01",
+ "followers_url": "https://api.github.com/users/soheil-star01/followers",
+ "following_url": "https://api.github.com/users/soheil-star01/following{/other_user}",
+ "gists_url": "https://api.github.com/users/soheil-star01/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/soheil-star01/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/soheil-star01/subscriptions",
+ "organizations_url": "https://api.github.com/users/soheil-star01/orgs",
+ "repos_url": "https://api.github.com/users/soheil-star01/repos",
+ "events_url": "https://api.github.com/users/soheil-star01/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/soheil-star01/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ }
+}
diff --git a/zerver/webhooks/github/fixtures/pull_request__milestoned.json b/zerver/webhooks/github/fixtures/pull_request__milestoned.json
new file mode 100644
index 00000000000..e9b8498083c
--- /dev/null
+++ b/zerver/webhooks/github/fixtures/pull_request__milestoned.json
@@ -0,0 +1,570 @@
+{
+ "action": "milestoned",
+ "number": 1,
+ "pull_request": {
+ "url": "https://api.github.com/repos/soheil-star01/soheil-star01/pulls/1",
+ "id": 2427231083,
+ "node_id": "PR_kwDOJqrH6c6QrJtr",
+ "html_url": "https://github.com/soheil-star01/soheil-star01/pull/1",
+ "diff_url": "https://github.com/soheil-star01/soheil-star01/pull/1.diff",
+ "patch_url": "https://github.com/soheil-star01/soheil-star01/pull/1.patch",
+ "issue_url": "https://api.github.com/repos/soheil-star01/soheil-star01/issues/1",
+ "number": 1,
+ "state": "open",
+ "locked": false,
+ "title": "test webhook",
+ "user": {
+ "login": "soheil-star01",
+ "id": 75124326,
+ "node_id": "MDQ6VXNlcjc1MTI0MzI2",
+ "avatar_url": "https://avatars.githubusercontent.com/u/75124326?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/soheil-star01",
+ "html_url": "https://github.com/soheil-star01",
+ "followers_url": "https://api.github.com/users/soheil-star01/followers",
+ "following_url": "https://api.github.com/users/soheil-star01/following{/other_user}",
+ "gists_url": "https://api.github.com/users/soheil-star01/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/soheil-star01/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/soheil-star01/subscriptions",
+ "organizations_url": "https://api.github.com/users/soheil-star01/orgs",
+ "repos_url": "https://api.github.com/users/soheil-star01/repos",
+ "events_url": "https://api.github.com/users/soheil-star01/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/soheil-star01/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "body": null,
+ "created_at": "2025-03-29T20:08:40Z",
+ "updated_at": "2025-03-29T20:16:02Z",
+ "closed_at": null,
+ "merged_at": null,
+ "merge_commit_sha": "4e0ff7451e6e06d8ca9d7a7de7ad5d7135dd5490",
+ "assignee": null,
+ "assignees": [],
+ "requested_reviewers": [],
+ "requested_teams": [],
+ "labels": [],
+ "milestone": {
+ "url": "https://api.github.com/repos/soheil-star01/soheil-star01/milestones/1",
+ "html_url": "https://github.com/soheil-star01/soheil-star01/milestone/1",
+ "labels_url": "https://api.github.com/repos/soheil-star01/soheil-star01/milestones/1/labels",
+ "id": 12638031,
+ "node_id": "MI_kwDOJqrH6c4AwNdP",
+ "number": 1,
+ "title": "new_ms",
+ "description": null,
+ "creator": {
+ "login": "soheil-star01",
+ "id": 75124326,
+ "node_id": "MDQ6VXNlcjc1MTI0MzI2",
+ "avatar_url": "https://avatars.githubusercontent.com/u/75124326?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/soheil-star01",
+ "html_url": "https://github.com/soheil-star01",
+ "followers_url": "https://api.github.com/users/soheil-star01/followers",
+ "following_url": "https://api.github.com/users/soheil-star01/following{/other_user}",
+ "gists_url": "https://api.github.com/users/soheil-star01/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/soheil-star01/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/soheil-star01/subscriptions",
+ "organizations_url": "https://api.github.com/users/soheil-star01/orgs",
+ "repos_url": "https://api.github.com/users/soheil-star01/repos",
+ "events_url": "https://api.github.com/users/soheil-star01/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/soheil-star01/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "open_issues": 1,
+ "closed_issues": 0,
+ "state": "open",
+ "created_at": "2025-03-29T20:16:02Z",
+ "updated_at": "2025-03-29T20:16:02Z",
+ "due_on": null,
+ "closed_at": null
+ },
+ "draft": false,
+ "commits_url": "https://api.github.com/repos/soheil-star01/soheil-star01/pulls/1/commits",
+ "review_comments_url": "https://api.github.com/repos/soheil-star01/soheil-star01/pulls/1/comments",
+ "review_comment_url": "https://api.github.com/repos/soheil-star01/soheil-star01/pulls/comments{/number}",
+ "comments_url": "https://api.github.com/repos/soheil-star01/soheil-star01/issues/1/comments",
+ "statuses_url": "https://api.github.com/repos/soheil-star01/soheil-star01/statuses/87d7bbbd605ee812b005793c01b0c567dc732bdc",
+ "head": {
+ "label": "soheil-star01:fix/test_webhook",
+ "ref": "fix/test_webhook",
+ "sha": "87d7bbbd605ee812b005793c01b0c567dc732bdc",
+ "user": {
+ "login": "soheil-star01",
+ "id": 75124326,
+ "node_id": "MDQ6VXNlcjc1MTI0MzI2",
+ "avatar_url": "https://avatars.githubusercontent.com/u/75124326?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/soheil-star01",
+ "html_url": "https://github.com/soheil-star01",
+ "followers_url": "https://api.github.com/users/soheil-star01/followers",
+ "following_url": "https://api.github.com/users/soheil-star01/following{/other_user}",
+ "gists_url": "https://api.github.com/users/soheil-star01/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/soheil-star01/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/soheil-star01/subscriptions",
+ "organizations_url": "https://api.github.com/users/soheil-star01/orgs",
+ "repos_url": "https://api.github.com/users/soheil-star01/repos",
+ "events_url": "https://api.github.com/users/soheil-star01/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/soheil-star01/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "repo": {
+ "id": 648726505,
+ "node_id": "R_kgDOJqrH6Q",
+ "name": "soheil-star01",
+ "full_name": "soheil-star01/soheil-star01",
+ "private": false,
+ "owner": {
+ "login": "soheil-star01",
+ "id": 75124326,
+ "node_id": "MDQ6VXNlcjc1MTI0MzI2",
+ "avatar_url": "https://avatars.githubusercontent.com/u/75124326?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/soheil-star01",
+ "html_url": "https://github.com/soheil-star01",
+ "followers_url": "https://api.github.com/users/soheil-star01/followers",
+ "following_url": "https://api.github.com/users/soheil-star01/following{/other_user}",
+ "gists_url": "https://api.github.com/users/soheil-star01/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/soheil-star01/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/soheil-star01/subscriptions",
+ "organizations_url": "https://api.github.com/users/soheil-star01/orgs",
+ "repos_url": "https://api.github.com/users/soheil-star01/repos",
+ "events_url": "https://api.github.com/users/soheil-star01/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/soheil-star01/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "html_url": "https://github.com/soheil-star01/soheil-star01",
+ "description": null,
+ "fork": false,
+ "url": "https://api.github.com/repos/soheil-star01/soheil-star01",
+ "forks_url": "https://api.github.com/repos/soheil-star01/soheil-star01/forks",
+ "keys_url": "https://api.github.com/repos/soheil-star01/soheil-star01/keys{/key_id}",
+ "collaborators_url": "https://api.github.com/repos/soheil-star01/soheil-star01/collaborators{/collaborator}",
+ "teams_url": "https://api.github.com/repos/soheil-star01/soheil-star01/teams",
+ "hooks_url": "https://api.github.com/repos/soheil-star01/soheil-star01/hooks",
+ "issue_events_url": "https://api.github.com/repos/soheil-star01/soheil-star01/issues/events{/number}",
+ "events_url": "https://api.github.com/repos/soheil-star01/soheil-star01/events",
+ "assignees_url": "https://api.github.com/repos/soheil-star01/soheil-star01/assignees{/user}",
+ "branches_url": "https://api.github.com/repos/soheil-star01/soheil-star01/branches{/branch}",
+ "tags_url": "https://api.github.com/repos/soheil-star01/soheil-star01/tags",
+ "blobs_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/blobs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/tags{/sha}",
+ "git_refs_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/refs{/sha}",
+ "trees_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/trees{/sha}",
+ "statuses_url": "https://api.github.com/repos/soheil-star01/soheil-star01/statuses/{sha}",
+ "languages_url": "https://api.github.com/repos/soheil-star01/soheil-star01/languages",
+ "stargazers_url": "https://api.github.com/repos/soheil-star01/soheil-star01/stargazers",
+ "contributors_url": "https://api.github.com/repos/soheil-star01/soheil-star01/contributors",
+ "subscribers_url": "https://api.github.com/repos/soheil-star01/soheil-star01/subscribers",
+ "subscription_url": "https://api.github.com/repos/soheil-star01/soheil-star01/subscription",
+ "commits_url": "https://api.github.com/repos/soheil-star01/soheil-star01/commits{/sha}",
+ "git_commits_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/commits{/sha}",
+ "comments_url": "https://api.github.com/repos/soheil-star01/soheil-star01/comments{/number}",
+ "issue_comment_url": "https://api.github.com/repos/soheil-star01/soheil-star01/issues/comments{/number}",
+ "contents_url": "https://api.github.com/repos/soheil-star01/soheil-star01/contents/{+path}",
+ "compare_url": "https://api.github.com/repos/soheil-star01/soheil-star01/compare/{base}...{head}",
+ "merges_url": "https://api.github.com/repos/soheil-star01/soheil-star01/merges",
+ "archive_url": "https://api.github.com/repos/soheil-star01/soheil-star01/{archive_format}{/ref}",
+ "downloads_url": "https://api.github.com/repos/soheil-star01/soheil-star01/downloads",
+ "issues_url": "https://api.github.com/repos/soheil-star01/soheil-star01/issues{/number}",
+ "pulls_url": "https://api.github.com/repos/soheil-star01/soheil-star01/pulls{/number}",
+ "milestones_url": "https://api.github.com/repos/soheil-star01/soheil-star01/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/soheil-star01/soheil-star01/notifications{?since,all,participating}",
+ "labels_url": "https://api.github.com/repos/soheil-star01/soheil-star01/labels{/name}",
+ "releases_url": "https://api.github.com/repos/soheil-star01/soheil-star01/releases{/id}",
+ "deployments_url": "https://api.github.com/repos/soheil-star01/soheil-star01/deployments",
+ "created_at": "2023-06-02T16:49:34Z",
+ "updated_at": "2023-06-02T16:49:35Z",
+ "pushed_at": "2025-03-29T20:08:21Z",
+ "git_url": "git://github.com/soheil-star01/soheil-star01.git",
+ "ssh_url": "[email protected]:soheil-star01/soheil-star01.git",
+ "clone_url": "https://github.com/soheil-star01/soheil-star01.git",
+ "svn_url": "https://github.com/soheil-star01/soheil-star01",
+ "homepage": null,
+ "size": 2,
+ "stargazers_count": 0,
+ "watchers_count": 0,
+ "language": null,
+ "has_issues": true,
+ "has_projects": true,
+ "has_downloads": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_discussions": false,
+ "forks_count": 0,
+ "mirror_url": null,
+ "archived": false,
+ "disabled": false,
+ "open_issues_count": 1,
+ "license": null,
+ "allow_forking": true,
+ "is_template": false,
+ "web_commit_signoff_required": false,
+ "topics": [],
+ "visibility": "public",
+ "forks": 0,
+ "open_issues": 1,
+ "watchers": 0,
+ "default_branch": "main",
+ "allow_squash_merge": true,
+ "allow_merge_commit": true,
+ "allow_rebase_merge": true,
+ "allow_auto_merge": false,
+ "delete_branch_on_merge": false,
+ "allow_update_branch": false,
+ "use_squash_pr_title_as_default": false,
+ "squash_merge_commit_message": "COMMIT_MESSAGES",
+ "squash_merge_commit_title": "COMMIT_OR_PR_TITLE",
+ "merge_commit_message": "PR_TITLE",
+ "merge_commit_title": "MERGE_MESSAGE"
+ }
+ },
+ "base": {
+ "label": "soheil-star01:main",
+ "ref": "main",
+ "sha": "e01f5c370f5a49b296d95ad78a31fa4f9b58b17e",
+ "user": {
+ "login": "soheil-star01",
+ "id": 75124326,
+ "node_id": "MDQ6VXNlcjc1MTI0MzI2",
+ "avatar_url": "https://avatars.githubusercontent.com/u/75124326?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/soheil-star01",
+ "html_url": "https://github.com/soheil-star01",
+ "followers_url": "https://api.github.com/users/soheil-star01/followers",
+ "following_url": "https://api.github.com/users/soheil-star01/following{/other_user}",
+ "gists_url": "https://api.github.com/users/soheil-star01/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/soheil-star01/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/soheil-star01/subscriptions",
+ "organizations_url": "https://api.github.com/users/soheil-star01/orgs",
+ "repos_url": "https://api.github.com/users/soheil-star01/repos",
+ "events_url": "https://api.github.com/users/soheil-star01/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/soheil-star01/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "repo": {
+ "id": 648726505,
+ "node_id": "R_kgDOJqrH6Q",
+ "name": "soheil-star01",
+ "full_name": "soheil-star01/soheil-star01",
+ "private": false,
+ "owner": {
+ "login": "soheil-star01",
+ "id": 75124326,
+ "node_id": "MDQ6VXNlcjc1MTI0MzI2",
+ "avatar_url": "https://avatars.githubusercontent.com/u/75124326?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/soheil-star01",
+ "html_url": "https://github.com/soheil-star01",
+ "followers_url": "https://api.github.com/users/soheil-star01/followers",
+ "following_url": "https://api.github.com/users/soheil-star01/following{/other_user}",
+ "gists_url": "https://api.github.com/users/soheil-star01/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/soheil-star01/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/soheil-star01/subscriptions",
+ "organizations_url": "https://api.github.com/users/soheil-star01/orgs",
+ "repos_url": "https://api.github.com/users/soheil-star01/repos",
+ "events_url": "https://api.github.com/users/soheil-star01/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/soheil-star01/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "html_url": "https://github.com/soheil-star01/soheil-star01",
+ "description": null,
+ "fork": false,
+ "url": "https://api.github.com/repos/soheil-star01/soheil-star01",
+ "forks_url": "https://api.github.com/repos/soheil-star01/soheil-star01/forks",
+ "keys_url": "https://api.github.com/repos/soheil-star01/soheil-star01/keys{/key_id}",
+ "collaborators_url": "https://api.github.com/repos/soheil-star01/soheil-star01/collaborators{/collaborator}",
+ "teams_url": "https://api.github.com/repos/soheil-star01/soheil-star01/teams",
+ "hooks_url": "https://api.github.com/repos/soheil-star01/soheil-star01/hooks",
+ "issue_events_url": "https://api.github.com/repos/soheil-star01/soheil-star01/issues/events{/number}",
+ "events_url": "https://api.github.com/repos/soheil-star01/soheil-star01/events",
+ "assignees_url": "https://api.github.com/repos/soheil-star01/soheil-star01/assignees{/user}",
+ "branches_url": "https://api.github.com/repos/soheil-star01/soheil-star01/branches{/branch}",
+ "tags_url": "https://api.github.com/repos/soheil-star01/soheil-star01/tags",
+ "blobs_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/blobs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/tags{/sha}",
+ "git_refs_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/refs{/sha}",
+ "trees_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/trees{/sha}",
+ "statuses_url": "https://api.github.com/repos/soheil-star01/soheil-star01/statuses/{sha}",
+ "languages_url": "https://api.github.com/repos/soheil-star01/soheil-star01/languages",
+ "stargazers_url": "https://api.github.com/repos/soheil-star01/soheil-star01/stargazers",
+ "contributors_url": "https://api.github.com/repos/soheil-star01/soheil-star01/contributors",
+ "subscribers_url": "https://api.github.com/repos/soheil-star01/soheil-star01/subscribers",
+ "subscription_url": "https://api.github.com/repos/soheil-star01/soheil-star01/subscription",
+ "commits_url": "https://api.github.com/repos/soheil-star01/soheil-star01/commits{/sha}",
+ "git_commits_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/commits{/sha}",
+ "comments_url": "https://api.github.com/repos/soheil-star01/soheil-star01/comments{/number}",
+ "issue_comment_url": "https://api.github.com/repos/soheil-star01/soheil-star01/issues/comments{/number}",
+ "contents_url": "https://api.github.com/repos/soheil-star01/soheil-star01/contents/{+path}",
+ "compare_url": "https://api.github.com/repos/soheil-star01/soheil-star01/compare/{base}...{head}",
+ "merges_url": "https://api.github.com/repos/soheil-star01/soheil-star01/merges",
+ "archive_url": "https://api.github.com/repos/soheil-star01/soheil-star01/{archive_format}{/ref}",
+ "downloads_url": "https://api.github.com/repos/soheil-star01/soheil-star01/downloads",
+ "issues_url": "https://api.github.com/repos/soheil-star01/soheil-star01/issues{/number}",
+ "pulls_url": "https://api.github.com/repos/soheil-star01/soheil-star01/pulls{/number}",
+ "milestones_url": "https://api.github.com/repos/soheil-star01/soheil-star01/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/soheil-star01/soheil-star01/notifications{?since,all,participating}",
+ "labels_url": "https://api.github.com/repos/soheil-star01/soheil-star01/labels{/name}",
+ "releases_url": "https://api.github.com/repos/soheil-star01/soheil-star01/releases{/id}",
+ "deployments_url": "https://api.github.com/repos/soheil-star01/soheil-star01/deployments",
+ "created_at": "2023-06-02T16:49:34Z",
+ "updated_at": "2023-06-02T16:49:35Z",
+ "pushed_at": "2025-03-29T20:08:21Z",
+ "git_url": "git://github.com/soheil-star01/soheil-star01.git",
+ "ssh_url": "[email protected]:soheil-star01/soheil-star01.git",
+ "clone_url": "https://github.com/soheil-star01/soheil-star01.git",
+ "svn_url": "https://github.com/soheil-star01/soheil-star01",
+ "homepage": null,
+ "size": 2,
+ "stargazers_count": 0,
+ "watchers_count": 0,
+ "language": null,
+ "has_issues": true,
+ "has_projects": true,
+ "has_downloads": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_discussions": false,
+ "forks_count": 0,
+ "mirror_url": null,
+ "archived": false,
+ "disabled": false,
+ "open_issues_count": 1,
+ "license": null,
+ "allow_forking": true,
+ "is_template": false,
+ "web_commit_signoff_required": false,
+ "topics": [],
+ "visibility": "public",
+ "forks": 0,
+ "open_issues": 1,
+ "watchers": 0,
+ "default_branch": "main",
+ "allow_squash_merge": true,
+ "allow_merge_commit": true,
+ "allow_rebase_merge": true,
+ "allow_auto_merge": false,
+ "delete_branch_on_merge": false,
+ "allow_update_branch": false,
+ "use_squash_pr_title_as_default": false,
+ "squash_merge_commit_message": "COMMIT_MESSAGES",
+ "squash_merge_commit_title": "COMMIT_OR_PR_TITLE",
+ "merge_commit_message": "PR_TITLE",
+ "merge_commit_title": "MERGE_MESSAGE"
+ }
+ },
+ "_links": {
+ "self": {
+ "href": "https://api.github.com/repos/soheil-star01/soheil-star01/pulls/1"
+ },
+ "html": {
+ "href": "https://github.com/soheil-star01/soheil-star01/pull/1"
+ },
+ "issue": {
+ "href": "https://api.github.com/repos/soheil-star01/soheil-star01/issues/1"
+ },
+ "comments": {
+ "href": "https://api.github.com/repos/soheil-star01/soheil-star01/issues/1/comments"
+ },
+ "review_comments": {
+ "href": "https://api.github.com/repos/soheil-star01/soheil-star01/pulls/1/comments"
+ },
+ "review_comment": {
+ "href": "https://api.github.com/repos/soheil-star01/soheil-star01/pulls/comments{/number}"
+ },
+ "commits": {
+ "href": "https://api.github.com/repos/soheil-star01/soheil-star01/pulls/1/commits"
+ },
+ "statuses": {
+ "href": "https://api.github.com/repos/soheil-star01/soheil-star01/statuses/87d7bbbd605ee812b005793c01b0c567dc732bdc"
+ }
+ },
+ "author_association": "OWNER",
+ "auto_merge": null,
+ "active_lock_reason": null,
+ "merged": false,
+ "mergeable": true,
+ "rebaseable": true,
+ "mergeable_state": "clean",
+ "merged_by": null,
+ "comments": 0,
+ "review_comments": 0,
+ "maintainer_can_modify": false,
+ "commits": 1,
+ "additions": 1,
+ "deletions": 1,
+ "changed_files": 1
+ },
+ "milestone": {
+ "url": "https://api.github.com/repos/soheil-star01/soheil-star01/milestones/1",
+ "html_url": "https://github.com/soheil-star01/soheil-star01/milestone/1",
+ "labels_url": "https://api.github.com/repos/soheil-star01/soheil-star01/milestones/1/labels",
+ "id": 12638031,
+ "node_id": "MI_kwDOJqrH6c4AwNdP",
+ "number": 1,
+ "title": "new_ms",
+ "description": null,
+ "creator": {
+ "login": "soheil-star01",
+ "id": 75124326,
+ "node_id": "MDQ6VXNlcjc1MTI0MzI2",
+ "avatar_url": "https://avatars.githubusercontent.com/u/75124326?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/soheil-star01",
+ "html_url": "https://github.com/soheil-star01",
+ "followers_url": "https://api.github.com/users/soheil-star01/followers",
+ "following_url": "https://api.github.com/users/soheil-star01/following{/other_user}",
+ "gists_url": "https://api.github.com/users/soheil-star01/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/soheil-star01/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/soheil-star01/subscriptions",
+ "organizations_url": "https://api.github.com/users/soheil-star01/orgs",
+ "repos_url": "https://api.github.com/users/soheil-star01/repos",
+ "events_url": "https://api.github.com/users/soheil-star01/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/soheil-star01/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "open_issues": 1,
+ "closed_issues": 0,
+ "state": "open",
+ "created_at": "2025-03-29T20:16:02Z",
+ "updated_at": "2025-03-29T20:16:02Z",
+ "due_on": null,
+ "closed_at": null
+ },
+ "repository": {
+ "id": 648726505,
+ "node_id": "R_kgDOJqrH6Q",
+ "name": "soheil-star01",
+ "full_name": "soheil-star01/soheil-star01",
+ "private": false,
+ "owner": {
+ "login": "soheil-star01",
+ "id": 75124326,
+ "node_id": "MDQ6VXNlcjc1MTI0MzI2",
+ "avatar_url": "https://avatars.githubusercontent.com/u/75124326?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/soheil-star01",
+ "html_url": "https://github.com/soheil-star01",
+ "followers_url": "https://api.github.com/users/soheil-star01/followers",
+ "following_url": "https://api.github.com/users/soheil-star01/following{/other_user}",
+ "gists_url": "https://api.github.com/users/soheil-star01/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/soheil-star01/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/soheil-star01/subscriptions",
+ "organizations_url": "https://api.github.com/users/soheil-star01/orgs",
+ "repos_url": "https://api.github.com/users/soheil-star01/repos",
+ "events_url": "https://api.github.com/users/soheil-star01/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/soheil-star01/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "html_url": "https://github.com/soheil-star01/soheil-star01",
+ "description": null,
+ "fork": false,
+ "url": "https://api.github.com/repos/soheil-star01/soheil-star01",
+ "forks_url": "https://api.github.com/repos/soheil-star01/soheil-star01/forks",
+ "keys_url": "https://api.github.com/repos/soheil-star01/soheil-star01/keys{/key_id}",
+ "collaborators_url": "https://api.github.com/repos/soheil-star01/soheil-star01/collaborators{/collaborator}",
+ "teams_url": "https://api.github.com/repos/soheil-star01/soheil-star01/teams",
+ "hooks_url": "https://api.github.com/repos/soheil-star01/soheil-star01/hooks",
+ "issue_events_url": "https://api.github.com/repos/soheil-star01/soheil-star01/issues/events{/number}",
+ "events_url": "https://api.github.com/repos/soheil-star01/soheil-star01/events",
+ "assignees_url": "https://api.github.com/repos/soheil-star01/soheil-star01/assignees{/user}",
+ "branches_url": "https://api.github.com/repos/soheil-star01/soheil-star01/branches{/branch}",
+ "tags_url": "https://api.github.com/repos/soheil-star01/soheil-star01/tags",
+ "blobs_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/blobs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/tags{/sha}",
+ "git_refs_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/refs{/sha}",
+ "trees_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/trees{/sha}",
+ "statuses_url": "https://api.github.com/repos/soheil-star01/soheil-star01/statuses/{sha}",
+ "languages_url": "https://api.github.com/repos/soheil-star01/soheil-star01/languages",
+ "stargazers_url": "https://api.github.com/repos/soheil-star01/soheil-star01/stargazers",
+ "contributors_url": "https://api.github.com/repos/soheil-star01/soheil-star01/contributors",
+ "subscribers_url": "https://api.github.com/repos/soheil-star01/soheil-star01/subscribers",
+ "subscription_url": "https://api.github.com/repos/soheil-star01/soheil-star01/subscription",
+ "commits_url": "https://api.github.com/repos/soheil-star01/soheil-star01/commits{/sha}",
+ "git_commits_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/commits{/sha}",
+ "comments_url": "https://api.github.com/repos/soheil-star01/soheil-star01/comments{/number}",
+ "issue_comment_url": "https://api.github.com/repos/soheil-star01/soheil-star01/issues/comments{/number}",
+ "contents_url": "https://api.github.com/repos/soheil-star01/soheil-star01/contents/{+path}",
+ "compare_url": "https://api.github.com/repos/soheil-star01/soheil-star01/compare/{base}...{head}",
+ "merges_url": "https://api.github.com/repos/soheil-star01/soheil-star01/merges",
+ "archive_url": "https://api.github.com/repos/soheil-star01/soheil-star01/{archive_format}{/ref}",
+ "downloads_url": "https://api.github.com/repos/soheil-star01/soheil-star01/downloads",
+ "issues_url": "https://api.github.com/repos/soheil-star01/soheil-star01/issues{/number}",
+ "pulls_url": "https://api.github.com/repos/soheil-star01/soheil-star01/pulls{/number}",
+ "milestones_url": "https://api.github.com/repos/soheil-star01/soheil-star01/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/soheil-star01/soheil-star01/notifications{?since,all,participating}",
+ "labels_url": "https://api.github.com/repos/soheil-star01/soheil-star01/labels{/name}",
+ "releases_url": "https://api.github.com/repos/soheil-star01/soheil-star01/releases{/id}",
+ "deployments_url": "https://api.github.com/repos/soheil-star01/soheil-star01/deployments",
+ "created_at": "2023-06-02T16:49:34Z",
+ "updated_at": "2023-06-02T16:49:35Z",
+ "pushed_at": "2025-03-29T20:08:21Z",
+ "git_url": "git://github.com/soheil-star01/soheil-star01.git",
+ "ssh_url": "[email protected]:soheil-star01/soheil-star01.git",
+ "clone_url": "https://github.com/soheil-star01/soheil-star01.git",
+ "svn_url": "https://github.com/soheil-star01/soheil-star01",
+ "homepage": null,
+ "size": 2,
+ "stargazers_count": 0,
+ "watchers_count": 0,
+ "language": null,
+ "has_issues": true,
+ "has_projects": true,
+ "has_downloads": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_discussions": false,
+ "forks_count": 0,
+ "mirror_url": null,
+ "archived": false,
+ "disabled": false,
+ "open_issues_count": 1,
+ "license": null,
+ "allow_forking": true,
+ "is_template": false,
+ "web_commit_signoff_required": false,
+ "topics": [],
+ "visibility": "public",
+ "forks": 0,
+ "open_issues": 1,
+ "watchers": 0,
+ "default_branch": "main"
+ },
+ "sender": {
+ "login": "soheil-star01",
+ "id": 75124326,
+ "node_id": "MDQ6VXNlcjc1MTI0MzI2",
+ "avatar_url": "https://avatars.githubusercontent.com/u/75124326?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/soheil-star01",
+ "html_url": "https://github.com/soheil-star01",
+ "followers_url": "https://api.github.com/users/soheil-star01/followers",
+ "following_url": "https://api.github.com/users/soheil-star01/following{/other_user}",
+ "gists_url": "https://api.github.com/users/soheil-star01/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/soheil-star01/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/soheil-star01/subscriptions",
+ "organizations_url": "https://api.github.com/users/soheil-star01/orgs",
+ "repos_url": "https://api.github.com/users/soheil-star01/repos",
+ "events_url": "https://api.github.com/users/soheil-star01/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/soheil-star01/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ }
+}
diff --git a/zerver/webhooks/github/fixtures/pull_request__reopened.json b/zerver/webhooks/github/fixtures/pull_request__reopened.json
new file mode 100644
index 00000000000..fc688d674e1
--- /dev/null
+++ b/zerver/webhooks/github/fixtures/pull_request__reopened.json
@@ -0,0 +1,495 @@
+{
+ "action": "reopened",
+ "number": 7,
+ "pull_request": {
+ "url": "https://api.github.com/repos/soheil-star01/soheil-star01/pulls/7",
+ "id": 2427280304,
+ "node_id": "PR_kwDOJqrH6c6QrVuw",
+ "html_url": "https://github.com/soheil-star01/soheil-star01/pull/7",
+ "diff_url": "https://github.com/soheil-star01/soheil-star01/pull/7.diff",
+ "patch_url": "https://github.com/soheil-star01/soheil-star01/pull/7.patch",
+ "issue_url": "https://api.github.com/repos/soheil-star01/soheil-star01/issues/7",
+ "number": 7,
+ "state": "open",
+ "locked": false,
+ "title": "Feat/webhook",
+ "user": {
+ "login": "soheil-star01",
+ "id": 75124326,
+ "node_id": "MDQ6VXNlcjc1MTI0MzI2",
+ "avatar_url": "https://avatars.githubusercontent.com/u/75124326?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/soheil-star01",
+ "html_url": "https://github.com/soheil-star01",
+ "followers_url": "https://api.github.com/users/soheil-star01/followers",
+ "following_url": "https://api.github.com/users/soheil-star01/following{/other_user}",
+ "gists_url": "https://api.github.com/users/soheil-star01/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/soheil-star01/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/soheil-star01/subscriptions",
+ "organizations_url": "https://api.github.com/users/soheil-star01/orgs",
+ "repos_url": "https://api.github.com/users/soheil-star01/repos",
+ "events_url": "https://api.github.com/users/soheil-star01/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/soheil-star01/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "body": null,
+ "created_at": "2025-03-29T22:51:38Z",
+ "updated_at": "2025-03-29T23:24:20Z",
+ "closed_at": null,
+ "merged_at": null,
+ "merge_commit_sha": null,
+ "assignee": null,
+ "assignees": [],
+ "requested_reviewers": [],
+ "requested_teams": [],
+ "labels": [],
+ "milestone": null,
+ "draft": false,
+ "commits_url": "https://api.github.com/repos/soheil-star01/soheil-star01/pulls/7/commits",
+ "review_comments_url": "https://api.github.com/repos/soheil-star01/soheil-star01/pulls/7/comments",
+ "review_comment_url": "https://api.github.com/repos/soheil-star01/soheil-star01/pulls/comments{/number}",
+ "comments_url": "https://api.github.com/repos/soheil-star01/soheil-star01/issues/7/comments",
+ "statuses_url": "https://api.github.com/repos/soheil-star01/soheil-star01/statuses/2a0eee59ca2430ffb54baef5adf1228d6ccb76f0",
+ "head": {
+ "label": "soheil-star01:feat/webhook",
+ "ref": "feat/webhook",
+ "sha": "2a0eee59ca2430ffb54baef5adf1228d6ccb76f0",
+ "user": {
+ "login": "soheil-star01",
+ "id": 75124326,
+ "node_id": "MDQ6VXNlcjc1MTI0MzI2",
+ "avatar_url": "https://avatars.githubusercontent.com/u/75124326?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/soheil-star01",
+ "html_url": "https://github.com/soheil-star01",
+ "followers_url": "https://api.github.com/users/soheil-star01/followers",
+ "following_url": "https://api.github.com/users/soheil-star01/following{/other_user}",
+ "gists_url": "https://api.github.com/users/soheil-star01/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/soheil-star01/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/soheil-star01/subscriptions",
+ "organizations_url": "https://api.github.com/users/soheil-star01/orgs",
+ "repos_url": "https://api.github.com/users/soheil-star01/repos",
+ "events_url": "https://api.github.com/users/soheil-star01/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/soheil-star01/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "repo": {
+ "id": 648726505,
+ "node_id": "R_kgDOJqrH6Q",
+ "name": "soheil-star01",
+ "full_name": "soheil-star01/soheil-star01",
+ "private": false,
+ "owner": {
+ "login": "soheil-star01",
+ "id": 75124326,
+ "node_id": "MDQ6VXNlcjc1MTI0MzI2",
+ "avatar_url": "https://avatars.githubusercontent.com/u/75124326?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/soheil-star01",
+ "html_url": "https://github.com/soheil-star01",
+ "followers_url": "https://api.github.com/users/soheil-star01/followers",
+ "following_url": "https://api.github.com/users/soheil-star01/following{/other_user}",
+ "gists_url": "https://api.github.com/users/soheil-star01/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/soheil-star01/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/soheil-star01/subscriptions",
+ "organizations_url": "https://api.github.com/users/soheil-star01/orgs",
+ "repos_url": "https://api.github.com/users/soheil-star01/repos",
+ "events_url": "https://api.github.com/users/soheil-star01/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/soheil-star01/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "html_url": "https://github.com/soheil-star01/soheil-star01",
+ "description": null,
+ "fork": false,
+ "url": "https://api.github.com/repos/soheil-star01/soheil-star01",
+ "forks_url": "https://api.github.com/repos/soheil-star01/soheil-star01/forks",
+ "keys_url": "https://api.github.com/repos/soheil-star01/soheil-star01/keys{/key_id}",
+ "collaborators_url": "https://api.github.com/repos/soheil-star01/soheil-star01/collaborators{/collaborator}",
+ "teams_url": "https://api.github.com/repos/soheil-star01/soheil-star01/teams",
+ "hooks_url": "https://api.github.com/repos/soheil-star01/soheil-star01/hooks",
+ "issue_events_url": "https://api.github.com/repos/soheil-star01/soheil-star01/issues/events{/number}",
+ "events_url": "https://api.github.com/repos/soheil-star01/soheil-star01/events",
+ "assignees_url": "https://api.github.com/repos/soheil-star01/soheil-star01/assignees{/user}",
+ "branches_url": "https://api.github.com/repos/soheil-star01/soheil-star01/branches{/branch}",
+ "tags_url": "https://api.github.com/repos/soheil-star01/soheil-star01/tags",
+ "blobs_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/blobs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/tags{/sha}",
+ "git_refs_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/refs{/sha}",
+ "trees_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/trees{/sha}",
+ "statuses_url": "https://api.github.com/repos/soheil-star01/soheil-star01/statuses/{sha}",
+ "languages_url": "https://api.github.com/repos/soheil-star01/soheil-star01/languages",
+ "stargazers_url": "https://api.github.com/repos/soheil-star01/soheil-star01/stargazers",
+ "contributors_url": "https://api.github.com/repos/soheil-star01/soheil-star01/contributors",
+ "subscribers_url": "https://api.github.com/repos/soheil-star01/soheil-star01/subscribers",
+ "subscription_url": "https://api.github.com/repos/soheil-star01/soheil-star01/subscription",
+ "commits_url": "https://api.github.com/repos/soheil-star01/soheil-star01/commits{/sha}",
+ "git_commits_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/commits{/sha}",
+ "comments_url": "https://api.github.com/repos/soheil-star01/soheil-star01/comments{/number}",
+ "issue_comment_url": "https://api.github.com/repos/soheil-star01/soheil-star01/issues/comments{/number}",
+ "contents_url": "https://api.github.com/repos/soheil-star01/soheil-star01/contents/{+path}",
+ "compare_url": "https://api.github.com/repos/soheil-star01/soheil-star01/compare/{base}...{head}",
+ "merges_url": "https://api.github.com/repos/soheil-star01/soheil-star01/merges",
+ "archive_url": "https://api.github.com/repos/soheil-star01/soheil-star01/{archive_format}{/ref}",
+ "downloads_url": "https://api.github.com/repos/soheil-star01/soheil-star01/downloads",
+ "issues_url": "https://api.github.com/repos/soheil-star01/soheil-star01/issues{/number}",
+ "pulls_url": "https://api.github.com/repos/soheil-star01/soheil-star01/pulls{/number}",
+ "milestones_url": "https://api.github.com/repos/soheil-star01/soheil-star01/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/soheil-star01/soheil-star01/notifications{?since,all,participating}",
+ "labels_url": "https://api.github.com/repos/soheil-star01/soheil-star01/labels{/name}",
+ "releases_url": "https://api.github.com/repos/soheil-star01/soheil-star01/releases{/id}",
+ "deployments_url": "https://api.github.com/repos/soheil-star01/soheil-star01/deployments",
+ "created_at": "2023-06-02T16:49:34Z",
+ "updated_at": "2025-03-29T22:43:52Z",
+ "pushed_at": "2025-03-29T22:44:28Z",
+ "git_url": "git://github.com/soheil-star01/soheil-star01.git",
+ "ssh_url": "[email protected]:soheil-star01/soheil-star01.git",
+ "clone_url": "https://github.com/soheil-star01/soheil-star01.git",
+ "svn_url": "https://github.com/soheil-star01/soheil-star01",
+ "homepage": null,
+ "size": 5,
+ "stargazers_count": 0,
+ "watchers_count": 0,
+ "language": null,
+ "has_issues": true,
+ "has_projects": true,
+ "has_downloads": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_discussions": false,
+ "forks_count": 0,
+ "mirror_url": null,
+ "archived": false,
+ "disabled": false,
+ "open_issues_count": 1,
+ "license": null,
+ "allow_forking": true,
+ "is_template": false,
+ "web_commit_signoff_required": false,
+ "topics": [],
+ "visibility": "public",
+ "forks": 0,
+ "open_issues": 1,
+ "watchers": 0,
+ "default_branch": "main",
+ "allow_squash_merge": true,
+ "allow_merge_commit": true,
+ "allow_rebase_merge": true,
+ "allow_auto_merge": false,
+ "delete_branch_on_merge": false,
+ "allow_update_branch": false,
+ "use_squash_pr_title_as_default": false,
+ "squash_merge_commit_message": "COMMIT_MESSAGES",
+ "squash_merge_commit_title": "COMMIT_OR_PR_TITLE",
+ "merge_commit_message": "PR_TITLE",
+ "merge_commit_title": "MERGE_MESSAGE"
+ }
+ },
+ "base": {
+ "label": "soheil-star01:main",
+ "ref": "main",
+ "sha": "322299dc0d8a600f84909541ad88fd3f6a15df62",
+ "user": {
+ "login": "soheil-star01",
+ "id": 75124326,
+ "node_id": "MDQ6VXNlcjc1MTI0MzI2",
+ "avatar_url": "https://avatars.githubusercontent.com/u/75124326?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/soheil-star01",
+ "html_url": "https://github.com/soheil-star01",
+ "followers_url": "https://api.github.com/users/soheil-star01/followers",
+ "following_url": "https://api.github.com/users/soheil-star01/following{/other_user}",
+ "gists_url": "https://api.github.com/users/soheil-star01/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/soheil-star01/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/soheil-star01/subscriptions",
+ "organizations_url": "https://api.github.com/users/soheil-star01/orgs",
+ "repos_url": "https://api.github.com/users/soheil-star01/repos",
+ "events_url": "https://api.github.com/users/soheil-star01/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/soheil-star01/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "repo": {
+ "id": 648726505,
+ "node_id": "R_kgDOJqrH6Q",
+ "name": "soheil-star01",
+ "full_name": "soheil-star01/soheil-star01",
+ "private": false,
+ "owner": {
+ "login": "soheil-star01",
+ "id": 75124326,
+ "node_id": "MDQ6VXNlcjc1MTI0MzI2",
+ "avatar_url": "https://avatars.githubusercontent.com/u/75124326?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/soheil-star01",
+ "html_url": "https://github.com/soheil-star01",
+ "followers_url": "https://api.github.com/users/soheil-star01/followers",
+ "following_url": "https://api.github.com/users/soheil-star01/following{/other_user}",
+ "gists_url": "https://api.github.com/users/soheil-star01/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/soheil-star01/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/soheil-star01/subscriptions",
+ "organizations_url": "https://api.github.com/users/soheil-star01/orgs",
+ "repos_url": "https://api.github.com/users/soheil-star01/repos",
+ "events_url": "https://api.github.com/users/soheil-star01/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/soheil-star01/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "html_url": "https://github.com/soheil-star01/soheil-star01",
+ "description": null,
+ "fork": false,
+ "url": "https://api.github.com/repos/soheil-star01/soheil-star01",
+ "forks_url": "https://api.github.com/repos/soheil-star01/soheil-star01/forks",
+ "keys_url": "https://api.github.com/repos/soheil-star01/soheil-star01/keys{/key_id}",
+ "collaborators_url": "https://api.github.com/repos/soheil-star01/soheil-star01/collaborators{/collaborator}",
+ "teams_url": "https://api.github.com/repos/soheil-star01/soheil-star01/teams",
+ "hooks_url": "https://api.github.com/repos/soheil-star01/soheil-star01/hooks",
+ "issue_events_url": "https://api.github.com/repos/soheil-star01/soheil-star01/issues/events{/number}",
+ "events_url": "https://api.github.com/repos/soheil-star01/soheil-star01/events",
+ "assignees_url": "https://api.github.com/repos/soheil-star01/soheil-star01/assignees{/user}",
+ "branches_url": "https://api.github.com/repos/soheil-star01/soheil-star01/branches{/branch}",
+ "tags_url": "https://api.github.com/repos/soheil-star01/soheil-star01/tags",
+ "blobs_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/blobs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/tags{/sha}",
+ "git_refs_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/refs{/sha}",
+ "trees_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/trees{/sha}",
+ "statuses_url": "https://api.github.com/repos/soheil-star01/soheil-star01/statuses/{sha}",
+ "languages_url": "https://api.github.com/repos/soheil-star01/soheil-star01/languages",
+ "stargazers_url": "https://api.github.com/repos/soheil-star01/soheil-star01/stargazers",
+ "contributors_url": "https://api.github.com/repos/soheil-star01/soheil-star01/contributors",
+ "subscribers_url": "https://api.github.com/repos/soheil-star01/soheil-star01/subscribers",
+ "subscription_url": "https://api.github.com/repos/soheil-star01/soheil-star01/subscription",
+ "commits_url": "https://api.github.com/repos/soheil-star01/soheil-star01/commits{/sha}",
+ "git_commits_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/commits{/sha}",
+ "comments_url": "https://api.github.com/repos/soheil-star01/soheil-star01/comments{/number}",
+ "issue_comment_url": "https://api.github.com/repos/soheil-star01/soheil-star01/issues/comments{/number}",
+ "contents_url": "https://api.github.com/repos/soheil-star01/soheil-star01/contents/{+path}",
+ "compare_url": "https://api.github.com/repos/soheil-star01/soheil-star01/compare/{base}...{head}",
+ "merges_url": "https://api.github.com/repos/soheil-star01/soheil-star01/merges",
+ "archive_url": "https://api.github.com/repos/soheil-star01/soheil-star01/{archive_format}{/ref}",
+ "downloads_url": "https://api.github.com/repos/soheil-star01/soheil-star01/downloads",
+ "issues_url": "https://api.github.com/repos/soheil-star01/soheil-star01/issues{/number}",
+ "pulls_url": "https://api.github.com/repos/soheil-star01/soheil-star01/pulls{/number}",
+ "milestones_url": "https://api.github.com/repos/soheil-star01/soheil-star01/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/soheil-star01/soheil-star01/notifications{?since,all,participating}",
+ "labels_url": "https://api.github.com/repos/soheil-star01/soheil-star01/labels{/name}",
+ "releases_url": "https://api.github.com/repos/soheil-star01/soheil-star01/releases{/id}",
+ "deployments_url": "https://api.github.com/repos/soheil-star01/soheil-star01/deployments",
+ "created_at": "2023-06-02T16:49:34Z",
+ "updated_at": "2025-03-29T22:43:52Z",
+ "pushed_at": "2025-03-29T22:44:28Z",
+ "git_url": "git://github.com/soheil-star01/soheil-star01.git",
+ "ssh_url": "[email protected]:soheil-star01/soheil-star01.git",
+ "clone_url": "https://github.com/soheil-star01/soheil-star01.git",
+ "svn_url": "https://github.com/soheil-star01/soheil-star01",
+ "homepage": null,
+ "size": 5,
+ "stargazers_count": 0,
+ "watchers_count": 0,
+ "language": null,
+ "has_issues": true,
+ "has_projects": true,
+ "has_downloads": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_discussions": false,
+ "forks_count": 0,
+ "mirror_url": null,
+ "archived": false,
+ "disabled": false,
+ "open_issues_count": 1,
+ "license": null,
+ "allow_forking": true,
+ "is_template": false,
+ "web_commit_signoff_required": false,
+ "topics": [],
+ "visibility": "public",
+ "forks": 0,
+ "open_issues": 1,
+ "watchers": 0,
+ "default_branch": "main",
+ "allow_squash_merge": true,
+ "allow_merge_commit": true,
+ "allow_rebase_merge": true,
+ "allow_auto_merge": false,
+ "delete_branch_on_merge": false,
+ "allow_update_branch": false,
+ "use_squash_pr_title_as_default": false,
+ "squash_merge_commit_message": "COMMIT_MESSAGES",
+ "squash_merge_commit_title": "COMMIT_OR_PR_TITLE",
+ "merge_commit_message": "PR_TITLE",
+ "merge_commit_title": "MERGE_MESSAGE"
+ }
+ },
+ "_links": {
+ "self": {
+ "href": "https://api.github.com/repos/soheil-star01/soheil-star01/pulls/7"
+ },
+ "html": {
+ "href": "https://github.com/soheil-star01/soheil-star01/pull/7"
+ },
+ "issue": {
+ "href": "https://api.github.com/repos/soheil-star01/soheil-star01/issues/7"
+ },
+ "comments": {
+ "href": "https://api.github.com/repos/soheil-star01/soheil-star01/issues/7/comments"
+ },
+ "review_comments": {
+ "href": "https://api.github.com/repos/soheil-star01/soheil-star01/pulls/7/comments"
+ },
+ "review_comment": {
+ "href": "https://api.github.com/repos/soheil-star01/soheil-star01/pulls/comments{/number}"
+ },
+ "commits": {
+ "href": "https://api.github.com/repos/soheil-star01/soheil-star01/pulls/7/commits"
+ },
+ "statuses": {
+ "href": "https://api.github.com/repos/soheil-star01/soheil-star01/statuses/2a0eee59ca2430ffb54baef5adf1228d6ccb76f0"
+ }
+ },
+ "author_association": "OWNER",
+ "auto_merge": null,
+ "active_lock_reason": null,
+ "merged": false,
+ "mergeable": null,
+ "rebaseable": null,
+ "mergeable_state": "unknown",
+ "merged_by": null,
+ "comments": 0,
+ "review_comments": 0,
+ "maintainer_can_modify": false,
+ "commits": 2,
+ "additions": 2,
+ "deletions": 1,
+ "changed_files": 1
+ },
+ "repository": {
+ "id": 648726505,
+ "node_id": "R_kgDOJqrH6Q",
+ "name": "soheil-star01",
+ "full_name": "soheil-star01/soheil-star01",
+ "private": false,
+ "owner": {
+ "login": "soheil-star01",
+ "id": 75124326,
+ "node_id": "MDQ6VXNlcjc1MTI0MzI2",
+ "avatar_url": "https://avatars.githubusercontent.com/u/75124326?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/soheil-star01",
+ "html_url": "https://github.com/soheil-star01",
+ "followers_url": "https://api.github.com/users/soheil-star01/followers",
+ "following_url": "https://api.github.com/users/soheil-star01/following{/other_user}",
+ "gists_url": "https://api.github.com/users/soheil-star01/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/soheil-star01/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/soheil-star01/subscriptions",
+ "organizations_url": "https://api.github.com/users/soheil-star01/orgs",
+ "repos_url": "https://api.github.com/users/soheil-star01/repos",
+ "events_url": "https://api.github.com/users/soheil-star01/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/soheil-star01/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "html_url": "https://github.com/soheil-star01/soheil-star01",
+ "description": null,
+ "fork": false,
+ "url": "https://api.github.com/repos/soheil-star01/soheil-star01",
+ "forks_url": "https://api.github.com/repos/soheil-star01/soheil-star01/forks",
+ "keys_url": "https://api.github.com/repos/soheil-star01/soheil-star01/keys{/key_id}",
+ "collaborators_url": "https://api.github.com/repos/soheil-star01/soheil-star01/collaborators{/collaborator}",
+ "teams_url": "https://api.github.com/repos/soheil-star01/soheil-star01/teams",
+ "hooks_url": "https://api.github.com/repos/soheil-star01/soheil-star01/hooks",
+ "issue_events_url": "https://api.github.com/repos/soheil-star01/soheil-star01/issues/events{/number}",
+ "events_url": "https://api.github.com/repos/soheil-star01/soheil-star01/events",
+ "assignees_url": "https://api.github.com/repos/soheil-star01/soheil-star01/assignees{/user}",
+ "branches_url": "https://api.github.com/repos/soheil-star01/soheil-star01/branches{/branch}",
+ "tags_url": "https://api.github.com/repos/soheil-star01/soheil-star01/tags",
+ "blobs_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/blobs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/tags{/sha}",
+ "git_refs_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/refs{/sha}",
+ "trees_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/trees{/sha}",
+ "statuses_url": "https://api.github.com/repos/soheil-star01/soheil-star01/statuses/{sha}",
+ "languages_url": "https://api.github.com/repos/soheil-star01/soheil-star01/languages",
+ "stargazers_url": "https://api.github.com/repos/soheil-star01/soheil-star01/stargazers",
+ "contributors_url": "https://api.github.com/repos/soheil-star01/soheil-star01/contributors",
+ "subscribers_url": "https://api.github.com/repos/soheil-star01/soheil-star01/subscribers",
+ "subscription_url": "https://api.github.com/repos/soheil-star01/soheil-star01/subscription",
+ "commits_url": "https://api.github.com/repos/soheil-star01/soheil-star01/commits{/sha}",
+ "git_commits_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/commits{/sha}",
+ "comments_url": "https://api.github.com/repos/soheil-star01/soheil-star01/comments{/number}",
+ "issue_comment_url": "https://api.github.com/repos/soheil-star01/soheil-star01/issues/comments{/number}",
+ "contents_url": "https://api.github.com/repos/soheil-star01/soheil-star01/contents/{+path}",
+ "compare_url": "https://api.github.com/repos/soheil-star01/soheil-star01/compare/{base}...{head}",
+ "merges_url": "https://api.github.com/repos/soheil-star01/soheil-star01/merges",
+ "archive_url": "https://api.github.com/repos/soheil-star01/soheil-star01/{archive_format}{/ref}",
+ "downloads_url": "https://api.github.com/repos/soheil-star01/soheil-star01/downloads",
+ "issues_url": "https://api.github.com/repos/soheil-star01/soheil-star01/issues{/number}",
+ "pulls_url": "https://api.github.com/repos/soheil-star01/soheil-star01/pulls{/number}",
+ "milestones_url": "https://api.github.com/repos/soheil-star01/soheil-star01/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/soheil-star01/soheil-star01/notifications{?since,all,participating}",
+ "labels_url": "https://api.github.com/repos/soheil-star01/soheil-star01/labels{/name}",
+ "releases_url": "https://api.github.com/repos/soheil-star01/soheil-star01/releases{/id}",
+ "deployments_url": "https://api.github.com/repos/soheil-star01/soheil-star01/deployments",
+ "created_at": "2023-06-02T16:49:34Z",
+ "updated_at": "2025-03-29T22:43:52Z",
+ "pushed_at": "2025-03-29T22:44:28Z",
+ "git_url": "git://github.com/soheil-star01/soheil-star01.git",
+ "ssh_url": "[email protected]:soheil-star01/soheil-star01.git",
+ "clone_url": "https://github.com/soheil-star01/soheil-star01.git",
+ "svn_url": "https://github.com/soheil-star01/soheil-star01",
+ "homepage": null,
+ "size": 5,
+ "stargazers_count": 0,
+ "watchers_count": 0,
+ "language": null,
+ "has_issues": true,
+ "has_projects": true,
+ "has_downloads": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_discussions": false,
+ "forks_count": 0,
+ "mirror_url": null,
+ "archived": false,
+ "disabled": false,
+ "open_issues_count": 1,
+ "license": null,
+ "allow_forking": true,
+ "is_template": false,
+ "web_commit_signoff_required": false,
+ "topics": [],
+ "visibility": "public",
+ "forks": 0,
+ "open_issues": 1,
+ "watchers": 0,
+ "default_branch": "main"
+ },
+ "sender": {
+ "login": "soheil-star01",
+ "id": 75124326,
+ "node_id": "MDQ6VXNlcjc1MTI0MzI2",
+ "avatar_url": "https://avatars.githubusercontent.com/u/75124326?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/soheil-star01",
+ "html_url": "https://github.com/soheil-star01",
+ "followers_url": "https://api.github.com/users/soheil-star01/followers",
+ "following_url": "https://api.github.com/users/soheil-star01/following{/other_user}",
+ "gists_url": "https://api.github.com/users/soheil-star01/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/soheil-star01/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/soheil-star01/subscriptions",
+ "organizations_url": "https://api.github.com/users/soheil-star01/orgs",
+ "repos_url": "https://api.github.com/users/soheil-star01/repos",
+ "events_url": "https://api.github.com/users/soheil-star01/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/soheil-star01/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ }
+}
diff --git a/zerver/webhooks/github/fixtures/pull_request__review_request_removed.json b/zerver/webhooks/github/fixtures/pull_request__review_request_removed.json
new file mode 100644
index 00000000000..9ecd419ba2c
--- /dev/null
+++ b/zerver/webhooks/github/fixtures/pull_request__review_request_removed.json
@@ -0,0 +1,562 @@
+{
+ "action": "review_request_removed",
+ "number": 1,
+ "pull_request": {
+ "url": "https://api.github.com/repos/techpillars-oy/test1/pulls/1",
+ "id": 2427297210,
+ "node_id": "PR_kwDOOQ6XGM6QrZ26",
+ "html_url": "https://github.com/techpillars-oy/test1/pull/1",
+ "diff_url": "https://github.com/techpillars-oy/test1/pull/1.diff",
+ "patch_url": "https://github.com/techpillars-oy/test1/pull/1.patch",
+ "issue_url": "https://api.github.com/repos/techpillars-oy/test1/issues/1",
+ "number": 1,
+ "state": "open",
+ "locked": false,
+ "title": "Feat/webhook",
+ "user": {
+ "login": "soheil-star01",
+ "id": 75124326,
+ "node_id": "MDQ6VXNlcjc1MTI0MzI2",
+ "avatar_url": "https://avatars.githubusercontent.com/u/75124326?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/soheil-star01",
+ "html_url": "https://github.com/soheil-star01",
+ "followers_url": "https://api.github.com/users/soheil-star01/followers",
+ "following_url": "https://api.github.com/users/soheil-star01/following{/other_user}",
+ "gists_url": "https://api.github.com/users/soheil-star01/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/soheil-star01/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/soheil-star01/subscriptions",
+ "organizations_url": "https://api.github.com/users/soheil-star01/orgs",
+ "repos_url": "https://api.github.com/users/soheil-star01/repos",
+ "events_url": "https://api.github.com/users/soheil-star01/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/soheil-star01/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "body": null,
+ "created_at": "2025-03-29T23:18:37Z",
+ "updated_at": "2025-03-30T11:54:01Z",
+ "closed_at": null,
+ "merged_at": null,
+ "merge_commit_sha": "2644c20151d1a7a46005a23bbb4ef1feb0214e73",
+ "assignee": null,
+ "assignees": [],
+ "requested_reviewers": [],
+ "requested_teams": [],
+ "labels": [
+ {
+ "id": 8373807327,
+ "node_id": "LA_kwDOOQ6XGM8AAAAB8x4o3w",
+ "url": "https://api.github.com/repos/techpillars-oy/test1/labels/bug",
+ "name": "bug",
+ "color": "d73a4a",
+ "default": true,
+ "description": "Something isn't working"
+ },
+ {
+ "id": 8373807333,
+ "node_id": "LA_kwDOOQ6XGM8AAAAB8x4o5Q",
+ "url": "https://api.github.com/repos/techpillars-oy/test1/labels/documentation",
+ "name": "documentation",
+ "color": "0075ca",
+ "default": true,
+ "description": "Improvements or additions to documentation"
+ }
+ ],
+ "milestone": null,
+ "draft": false,
+ "commits_url": "https://api.github.com/repos/techpillars-oy/test1/pulls/1/commits",
+ "review_comments_url": "https://api.github.com/repos/techpillars-oy/test1/pulls/1/comments",
+ "review_comment_url": "https://api.github.com/repos/techpillars-oy/test1/pulls/comments{/number}",
+ "comments_url": "https://api.github.com/repos/techpillars-oy/test1/issues/1/comments",
+ "statuses_url": "https://api.github.com/repos/techpillars-oy/test1/statuses/493ba2f67d61b69550a9b3bef4348bccf49cde82",
+ "head": {
+ "label": "techpillars-oy:feat/webhook",
+ "ref": "feat/webhook",
+ "sha": "493ba2f67d61b69550a9b3bef4348bccf49cde82",
+ "user": {
+ "login": "techpillars-oy",
+ "id": 205471033,
+ "node_id": "O_kgDODD89OQ",
+ "avatar_url": "https://avatars.githubusercontent.com/u/205471033?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/techpillars-oy",
+ "html_url": "https://github.com/techpillars-oy",
+ "followers_url": "https://api.github.com/users/techpillars-oy/followers",
+ "following_url": "https://api.github.com/users/techpillars-oy/following{/other_user}",
+ "gists_url": "https://api.github.com/users/techpillars-oy/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/techpillars-oy/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/techpillars-oy/subscriptions",
+ "organizations_url": "https://api.github.com/users/techpillars-oy/orgs",
+ "repos_url": "https://api.github.com/users/techpillars-oy/repos",
+ "events_url": "https://api.github.com/users/techpillars-oy/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/techpillars-oy/received_events",
+ "type": "Organization",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "repo": {
+ "id": 957257496,
+ "node_id": "R_kgDOOQ6XGA",
+ "name": "test1",
+ "full_name": "techpillars-oy/test1",
+ "private": false,
+ "owner": {
+ "login": "techpillars-oy",
+ "id": 205471033,
+ "node_id": "O_kgDODD89OQ",
+ "avatar_url": "https://avatars.githubusercontent.com/u/205471033?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/techpillars-oy",
+ "html_url": "https://github.com/techpillars-oy",
+ "followers_url": "https://api.github.com/users/techpillars-oy/followers",
+ "following_url": "https://api.github.com/users/techpillars-oy/following{/other_user}",
+ "gists_url": "https://api.github.com/users/techpillars-oy/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/techpillars-oy/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/techpillars-oy/subscriptions",
+ "organizations_url": "https://api.github.com/users/techpillars-oy/orgs",
+ "repos_url": "https://api.github.com/users/techpillars-oy/repos",
+ "events_url": "https://api.github.com/users/techpillars-oy/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/techpillars-oy/received_events",
+ "type": "Organization",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "html_url": "https://github.com/techpillars-oy/test1",
+ "description": null,
+ "fork": false,
+ "url": "https://api.github.com/repos/techpillars-oy/test1",
+ "forks_url": "https://api.github.com/repos/techpillars-oy/test1/forks",
+ "keys_url": "https://api.github.com/repos/techpillars-oy/test1/keys{/key_id}",
+ "collaborators_url": "https://api.github.com/repos/techpillars-oy/test1/collaborators{/collaborator}",
+ "teams_url": "https://api.github.com/repos/techpillars-oy/test1/teams",
+ "hooks_url": "https://api.github.com/repos/techpillars-oy/test1/hooks",
+ "issue_events_url": "https://api.github.com/repos/techpillars-oy/test1/issues/events{/number}",
+ "events_url": "https://api.github.com/repos/techpillars-oy/test1/events",
+ "assignees_url": "https://api.github.com/repos/techpillars-oy/test1/assignees{/user}",
+ "branches_url": "https://api.github.com/repos/techpillars-oy/test1/branches{/branch}",
+ "tags_url": "https://api.github.com/repos/techpillars-oy/test1/tags",
+ "blobs_url": "https://api.github.com/repos/techpillars-oy/test1/git/blobs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/techpillars-oy/test1/git/tags{/sha}",
+ "git_refs_url": "https://api.github.com/repos/techpillars-oy/test1/git/refs{/sha}",
+ "trees_url": "https://api.github.com/repos/techpillars-oy/test1/git/trees{/sha}",
+ "statuses_url": "https://api.github.com/repos/techpillars-oy/test1/statuses/{sha}",
+ "languages_url": "https://api.github.com/repos/techpillars-oy/test1/languages",
+ "stargazers_url": "https://api.github.com/repos/techpillars-oy/test1/stargazers",
+ "contributors_url": "https://api.github.com/repos/techpillars-oy/test1/contributors",
+ "subscribers_url": "https://api.github.com/repos/techpillars-oy/test1/subscribers",
+ "subscription_url": "https://api.github.com/repos/techpillars-oy/test1/subscription",
+ "commits_url": "https://api.github.com/repos/techpillars-oy/test1/commits{/sha}",
+ "git_commits_url": "https://api.github.com/repos/techpillars-oy/test1/git/commits{/sha}",
+ "comments_url": "https://api.github.com/repos/techpillars-oy/test1/comments{/number}",
+ "issue_comment_url": "https://api.github.com/repos/techpillars-oy/test1/issues/comments{/number}",
+ "contents_url": "https://api.github.com/repos/techpillars-oy/test1/contents/{+path}",
+ "compare_url": "https://api.github.com/repos/techpillars-oy/test1/compare/{base}...{head}",
+ "merges_url": "https://api.github.com/repos/techpillars-oy/test1/merges",
+ "archive_url": "https://api.github.com/repos/techpillars-oy/test1/{archive_format}{/ref}",
+ "downloads_url": "https://api.github.com/repos/techpillars-oy/test1/downloads",
+ "issues_url": "https://api.github.com/repos/techpillars-oy/test1/issues{/number}",
+ "pulls_url": "https://api.github.com/repos/techpillars-oy/test1/pulls{/number}",
+ "milestones_url": "https://api.github.com/repos/techpillars-oy/test1/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/techpillars-oy/test1/notifications{?since,all,participating}",
+ "labels_url": "https://api.github.com/repos/techpillars-oy/test1/labels{/name}",
+ "releases_url": "https://api.github.com/repos/techpillars-oy/test1/releases{/id}",
+ "deployments_url": "https://api.github.com/repos/techpillars-oy/test1/deployments",
+ "created_at": "2025-03-29T23:13:47Z",
+ "updated_at": "2025-03-29T23:15:43Z",
+ "pushed_at": "2025-03-29T23:18:26Z",
+ "git_url": "git://github.com/techpillars-oy/test1.git",
+ "ssh_url": "[email protected]:techpillars-oy/test1.git",
+ "clone_url": "https://github.com/techpillars-oy/test1.git",
+ "svn_url": "https://github.com/techpillars-oy/test1",
+ "homepage": null,
+ "size": 8,
+ "stargazers_count": 0,
+ "watchers_count": 0,
+ "language": null,
+ "has_issues": true,
+ "has_projects": true,
+ "has_downloads": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_discussions": false,
+ "forks_count": 0,
+ "mirror_url": null,
+ "archived": false,
+ "disabled": false,
+ "open_issues_count": 1,
+ "license": null,
+ "allow_forking": true,
+ "is_template": false,
+ "web_commit_signoff_required": false,
+ "topics": [],
+ "visibility": "public",
+ "forks": 0,
+ "open_issues": 1,
+ "watchers": 0,
+ "default_branch": "main",
+ "allow_squash_merge": true,
+ "allow_merge_commit": true,
+ "allow_rebase_merge": true,
+ "allow_auto_merge": false,
+ "delete_branch_on_merge": false,
+ "allow_update_branch": false,
+ "use_squash_pr_title_as_default": false,
+ "squash_merge_commit_message": "COMMIT_MESSAGES",
+ "squash_merge_commit_title": "COMMIT_OR_PR_TITLE",
+ "merge_commit_message": "PR_TITLE",
+ "merge_commit_title": "MERGE_MESSAGE"
+ }
+ },
+ "base": {
+ "label": "techpillars-oy:main",
+ "ref": "main",
+ "sha": "322299dc0d8a600f84909541ad88fd3f6a15df62",
+ "user": {
+ "login": "techpillars-oy",
+ "id": 205471033,
+ "node_id": "O_kgDODD89OQ",
+ "avatar_url": "https://avatars.githubusercontent.com/u/205471033?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/techpillars-oy",
+ "html_url": "https://github.com/techpillars-oy",
+ "followers_url": "https://api.github.com/users/techpillars-oy/followers",
+ "following_url": "https://api.github.com/users/techpillars-oy/following{/other_user}",
+ "gists_url": "https://api.github.com/users/techpillars-oy/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/techpillars-oy/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/techpillars-oy/subscriptions",
+ "organizations_url": "https://api.github.com/users/techpillars-oy/orgs",
+ "repos_url": "https://api.github.com/users/techpillars-oy/repos",
+ "events_url": "https://api.github.com/users/techpillars-oy/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/techpillars-oy/received_events",
+ "type": "Organization",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "repo": {
+ "id": 957257496,
+ "node_id": "R_kgDOOQ6XGA",
+ "name": "test1",
+ "full_name": "techpillars-oy/test1",
+ "private": false,
+ "owner": {
+ "login": "techpillars-oy",
+ "id": 205471033,
+ "node_id": "O_kgDODD89OQ",
+ "avatar_url": "https://avatars.githubusercontent.com/u/205471033?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/techpillars-oy",
+ "html_url": "https://github.com/techpillars-oy",
+ "followers_url": "https://api.github.com/users/techpillars-oy/followers",
+ "following_url": "https://api.github.com/users/techpillars-oy/following{/other_user}",
+ "gists_url": "https://api.github.com/users/techpillars-oy/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/techpillars-oy/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/techpillars-oy/subscriptions",
+ "organizations_url": "https://api.github.com/users/techpillars-oy/orgs",
+ "repos_url": "https://api.github.com/users/techpillars-oy/repos",
+ "events_url": "https://api.github.com/users/techpillars-oy/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/techpillars-oy/received_events",
+ "type": "Organization",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "html_url": "https://github.com/techpillars-oy/test1",
+ "description": null,
+ "fork": false,
+ "url": "https://api.github.com/repos/techpillars-oy/test1",
+ "forks_url": "https://api.github.com/repos/techpillars-oy/test1/forks",
+ "keys_url": "https://api.github.com/repos/techpillars-oy/test1/keys{/key_id}",
+ "collaborators_url": "https://api.github.com/repos/techpillars-oy/test1/collaborators{/collaborator}",
+ "teams_url": "https://api.github.com/repos/techpillars-oy/test1/teams",
+ "hooks_url": "https://api.github.com/repos/techpillars-oy/test1/hooks",
+ "issue_events_url": "https://api.github.com/repos/techpillars-oy/test1/issues/events{/number}",
+ "events_url": "https://api.github.com/repos/techpillars-oy/test1/events",
+ "assignees_url": "https://api.github.com/repos/techpillars-oy/test1/assignees{/user}",
+ "branches_url": "https://api.github.com/repos/techpillars-oy/test1/branches{/branch}",
+ "tags_url": "https://api.github.com/repos/techpillars-oy/test1/tags",
+ "blobs_url": "https://api.github.com/repos/techpillars-oy/test1/git/blobs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/techpillars-oy/test1/git/tags{/sha}",
+ "git_refs_url": "https://api.github.com/repos/techpillars-oy/test1/git/refs{/sha}",
+ "trees_url": "https://api.github.com/repos/techpillars-oy/test1/git/trees{/sha}",
+ "statuses_url": "https://api.github.com/repos/techpillars-oy/test1/statuses/{sha}",
+ "languages_url": "https://api.github.com/repos/techpillars-oy/test1/languages",
+ "stargazers_url": "https://api.github.com/repos/techpillars-oy/test1/stargazers",
+ "contributors_url": "https://api.github.com/repos/techpillars-oy/test1/contributors",
+ "subscribers_url": "https://api.github.com/repos/techpillars-oy/test1/subscribers",
+ "subscription_url": "https://api.github.com/repos/techpillars-oy/test1/subscription",
+ "commits_url": "https://api.github.com/repos/techpillars-oy/test1/commits{/sha}",
+ "git_commits_url": "https://api.github.com/repos/techpillars-oy/test1/git/commits{/sha}",
+ "comments_url": "https://api.github.com/repos/techpillars-oy/test1/comments{/number}",
+ "issue_comment_url": "https://api.github.com/repos/techpillars-oy/test1/issues/comments{/number}",
+ "contents_url": "https://api.github.com/repos/techpillars-oy/test1/contents/{+path}",
+ "compare_url": "https://api.github.com/repos/techpillars-oy/test1/compare/{base}...{head}",
+ "merges_url": "https://api.github.com/repos/techpillars-oy/test1/merges",
+ "archive_url": "https://api.github.com/repos/techpillars-oy/test1/{archive_format}{/ref}",
+ "downloads_url": "https://api.github.com/repos/techpillars-oy/test1/downloads",
+ "issues_url": "https://api.github.com/repos/techpillars-oy/test1/issues{/number}",
+ "pulls_url": "https://api.github.com/repos/techpillars-oy/test1/pulls{/number}",
+ "milestones_url": "https://api.github.com/repos/techpillars-oy/test1/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/techpillars-oy/test1/notifications{?since,all,participating}",
+ "labels_url": "https://api.github.com/repos/techpillars-oy/test1/labels{/name}",
+ "releases_url": "https://api.github.com/repos/techpillars-oy/test1/releases{/id}",
+ "deployments_url": "https://api.github.com/repos/techpillars-oy/test1/deployments",
+ "created_at": "2025-03-29T23:13:47Z",
+ "updated_at": "2025-03-29T23:15:43Z",
+ "pushed_at": "2025-03-29T23:18:26Z",
+ "git_url": "git://github.com/techpillars-oy/test1.git",
+ "ssh_url": "[email protected]:techpillars-oy/test1.git",
+ "clone_url": "https://github.com/techpillars-oy/test1.git",
+ "svn_url": "https://github.com/techpillars-oy/test1",
+ "homepage": null,
+ "size": 8,
+ "stargazers_count": 0,
+ "watchers_count": 0,
+ "language": null,
+ "has_issues": true,
+ "has_projects": true,
+ "has_downloads": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_discussions": false,
+ "forks_count": 0,
+ "mirror_url": null,
+ "archived": false,
+ "disabled": false,
+ "open_issues_count": 1,
+ "license": null,
+ "allow_forking": true,
+ "is_template": false,
+ "web_commit_signoff_required": false,
+ "topics": [],
+ "visibility": "public",
+ "forks": 0,
+ "open_issues": 1,
+ "watchers": 0,
+ "default_branch": "main",
+ "allow_squash_merge": true,
+ "allow_merge_commit": true,
+ "allow_rebase_merge": true,
+ "allow_auto_merge": false,
+ "delete_branch_on_merge": false,
+ "allow_update_branch": false,
+ "use_squash_pr_title_as_default": false,
+ "squash_merge_commit_message": "COMMIT_MESSAGES",
+ "squash_merge_commit_title": "COMMIT_OR_PR_TITLE",
+ "merge_commit_message": "PR_TITLE",
+ "merge_commit_title": "MERGE_MESSAGE"
+ }
+ },
+ "_links": {
+ "self": {
+ "href": "https://api.github.com/repos/techpillars-oy/test1/pulls/1"
+ },
+ "html": {
+ "href": "https://github.com/techpillars-oy/test1/pull/1"
+ },
+ "issue": {
+ "href": "https://api.github.com/repos/techpillars-oy/test1/issues/1"
+ },
+ "comments": {
+ "href": "https://api.github.com/repos/techpillars-oy/test1/issues/1/comments"
+ },
+ "review_comments": {
+ "href": "https://api.github.com/repos/techpillars-oy/test1/pulls/1/comments"
+ },
+ "review_comment": {
+ "href": "https://api.github.com/repos/techpillars-oy/test1/pulls/comments{/number}"
+ },
+ "commits": {
+ "href": "https://api.github.com/repos/techpillars-oy/test1/pulls/1/commits"
+ },
+ "statuses": {
+ "href": "https://api.github.com/repos/techpillars-oy/test1/statuses/493ba2f67d61b69550a9b3bef4348bccf49cde82"
+ }
+ },
+ "author_association": "COLLABORATOR",
+ "auto_merge": null,
+ "active_lock_reason": null,
+ "merged": false,
+ "mergeable": true,
+ "rebaseable": false,
+ "mergeable_state": "clean",
+ "merged_by": null,
+ "comments": 0,
+ "review_comments": 0,
+ "maintainer_can_modify": false,
+ "commits": 3,
+ "additions": 2,
+ "deletions": 1,
+ "changed_files": 1
+ },
+ "requested_reviewer": {
+ "login": "redolat",
+ "id": 29664187,
+ "node_id": "MDQ6VXNlcjI5NjY0MTg3",
+ "avatar_url": "https://avatars.githubusercontent.com/u/29664187?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/redolat",
+ "html_url": "https://github.com/redolat",
+ "followers_url": "https://api.github.com/users/redolat/followers",
+ "following_url": "https://api.github.com/users/redolat/following{/other_user}",
+ "gists_url": "https://api.github.com/users/redolat/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/redolat/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/redolat/subscriptions",
+ "organizations_url": "https://api.github.com/users/redolat/orgs",
+ "repos_url": "https://api.github.com/users/redolat/repos",
+ "events_url": "https://api.github.com/users/redolat/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/redolat/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "repository": {
+ "id": 957257496,
+ "node_id": "R_kgDOOQ6XGA",
+ "name": "test1",
+ "full_name": "techpillars-oy/test1",
+ "private": false,
+ "owner": {
+ "login": "techpillars-oy",
+ "id": 205471033,
+ "node_id": "O_kgDODD89OQ",
+ "avatar_url": "https://avatars.githubusercontent.com/u/205471033?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/techpillars-oy",
+ "html_url": "https://github.com/techpillars-oy",
+ "followers_url": "https://api.github.com/users/techpillars-oy/followers",
+ "following_url": "https://api.github.com/users/techpillars-oy/following{/other_user}",
+ "gists_url": "https://api.github.com/users/techpillars-oy/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/techpillars-oy/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/techpillars-oy/subscriptions",
+ "organizations_url": "https://api.github.com/users/techpillars-oy/orgs",
+ "repos_url": "https://api.github.com/users/techpillars-oy/repos",
+ "events_url": "https://api.github.com/users/techpillars-oy/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/techpillars-oy/received_events",
+ "type": "Organization",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "html_url": "https://github.com/techpillars-oy/test1",
+ "description": null,
+ "fork": false,
+ "url": "https://api.github.com/repos/techpillars-oy/test1",
+ "forks_url": "https://api.github.com/repos/techpillars-oy/test1/forks",
+ "keys_url": "https://api.github.com/repos/techpillars-oy/test1/keys{/key_id}",
+ "collaborators_url": "https://api.github.com/repos/techpillars-oy/test1/collaborators{/collaborator}",
+ "teams_url": "https://api.github.com/repos/techpillars-oy/test1/teams",
+ "hooks_url": "https://api.github.com/repos/techpillars-oy/test1/hooks",
+ "issue_events_url": "https://api.github.com/repos/techpillars-oy/test1/issues/events{/number}",
+ "events_url": "https://api.github.com/repos/techpillars-oy/test1/events",
+ "assignees_url": "https://api.github.com/repos/techpillars-oy/test1/assignees{/user}",
+ "branches_url": "https://api.github.com/repos/techpillars-oy/test1/branches{/branch}",
+ "tags_url": "https://api.github.com/repos/techpillars-oy/test1/tags",
+ "blobs_url": "https://api.github.com/repos/techpillars-oy/test1/git/blobs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/techpillars-oy/test1/git/tags{/sha}",
+ "git_refs_url": "https://api.github.com/repos/techpillars-oy/test1/git/refs{/sha}",
+ "trees_url": "https://api.github.com/repos/techpillars-oy/test1/git/trees{/sha}",
+ "statuses_url": "https://api.github.com/repos/techpillars-oy/test1/statuses/{sha}",
+ "languages_url": "https://api.github.com/repos/techpillars-oy/test1/languages",
+ "stargazers_url": "https://api.github.com/repos/techpillars-oy/test1/stargazers",
+ "contributors_url": "https://api.github.com/repos/techpillars-oy/test1/contributors",
+ "subscribers_url": "https://api.github.com/repos/techpillars-oy/test1/subscribers",
+ "subscription_url": "https://api.github.com/repos/techpillars-oy/test1/subscription",
+ "commits_url": "https://api.github.com/repos/techpillars-oy/test1/commits{/sha}",
+ "git_commits_url": "https://api.github.com/repos/techpillars-oy/test1/git/commits{/sha}",
+ "comments_url": "https://api.github.com/repos/techpillars-oy/test1/comments{/number}",
+ "issue_comment_url": "https://api.github.com/repos/techpillars-oy/test1/issues/comments{/number}",
+ "contents_url": "https://api.github.com/repos/techpillars-oy/test1/contents/{+path}",
+ "compare_url": "https://api.github.com/repos/techpillars-oy/test1/compare/{base}...{head}",
+ "merges_url": "https://api.github.com/repos/techpillars-oy/test1/merges",
+ "archive_url": "https://api.github.com/repos/techpillars-oy/test1/{archive_format}{/ref}",
+ "downloads_url": "https://api.github.com/repos/techpillars-oy/test1/downloads",
+ "issues_url": "https://api.github.com/repos/techpillars-oy/test1/issues{/number}",
+ "pulls_url": "https://api.github.com/repos/techpillars-oy/test1/pulls{/number}",
+ "milestones_url": "https://api.github.com/repos/techpillars-oy/test1/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/techpillars-oy/test1/notifications{?since,all,participating}",
+ "labels_url": "https://api.github.com/repos/techpillars-oy/test1/labels{/name}",
+ "releases_url": "https://api.github.com/repos/techpillars-oy/test1/releases{/id}",
+ "deployments_url": "https://api.github.com/repos/techpillars-oy/test1/deployments",
+ "created_at": "2025-03-29T23:13:47Z",
+ "updated_at": "2025-03-29T23:15:43Z",
+ "pushed_at": "2025-03-29T23:18:26Z",
+ "git_url": "git://github.com/techpillars-oy/test1.git",
+ "ssh_url": "[email protected]:techpillars-oy/test1.git",
+ "clone_url": "https://github.com/techpillars-oy/test1.git",
+ "svn_url": "https://github.com/techpillars-oy/test1",
+ "homepage": null,
+ "size": 8,
+ "stargazers_count": 0,
+ "watchers_count": 0,
+ "language": null,
+ "has_issues": true,
+ "has_projects": true,
+ "has_downloads": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_discussions": false,
+ "forks_count": 0,
+ "mirror_url": null,
+ "archived": false,
+ "disabled": false,
+ "open_issues_count": 1,
+ "license": null,
+ "allow_forking": true,
+ "is_template": false,
+ "web_commit_signoff_required": false,
+ "topics": [],
+ "visibility": "public",
+ "forks": 0,
+ "open_issues": 1,
+ "watchers": 0,
+ "default_branch": "main",
+ "custom_properties": {}
+ },
+ "organization": {
+ "login": "techpillars-oy",
+ "id": 205471033,
+ "node_id": "O_kgDODD89OQ",
+ "url": "https://api.github.com/orgs/techpillars-oy",
+ "repos_url": "https://api.github.com/orgs/techpillars-oy/repos",
+ "events_url": "https://api.github.com/orgs/techpillars-oy/events",
+ "hooks_url": "https://api.github.com/orgs/techpillars-oy/hooks",
+ "issues_url": "https://api.github.com/orgs/techpillars-oy/issues",
+ "members_url": "https://api.github.com/orgs/techpillars-oy/members{/member}",
+ "public_members_url": "https://api.github.com/orgs/techpillars-oy/public_members{/member}",
+ "avatar_url": "https://avatars.githubusercontent.com/u/205471033?v=4",
+ "description": null
+ },
+ "enterprise": {
+ "id": 308188,
+ "slug": "techpillars",
+ "name": "TechPillars Oy",
+ "node_id": "E_kgDOAASz3A",
+ "avatar_url": "https://avatars.githubusercontent.com/b/308188?v=4",
+ "description": null,
+ "website_url": null,
+ "html_url": "https://github.com/enterprises/techpillars",
+ "created_at": "2025-03-29T23:09:48Z",
+ "updated_at": "2025-03-29T23:11:21Z"
+ },
+ "sender": {
+ "login": "soheil-star01",
+ "id": 75124326,
+ "node_id": "MDQ6VXNlcjc1MTI0MzI2",
+ "avatar_url": "https://avatars.githubusercontent.com/u/75124326?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/soheil-star01",
+ "html_url": "https://github.com/soheil-star01",
+ "followers_url": "https://api.github.com/users/soheil-star01/followers",
+ "following_url": "https://api.github.com/users/soheil-star01/following{/other_user}",
+ "gists_url": "https://api.github.com/users/soheil-star01/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/soheil-star01/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/soheil-star01/subscriptions",
+ "organizations_url": "https://api.github.com/users/soheil-star01/orgs",
+ "repos_url": "https://api.github.com/users/soheil-star01/repos",
+ "events_url": "https://api.github.com/users/soheil-star01/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/soheil-star01/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ }
+}
diff --git a/zerver/webhooks/github/fixtures/pull_request__unlabeled.json b/zerver/webhooks/github/fixtures/pull_request__unlabeled.json
new file mode 100644
index 00000000000..98deebacbe8
--- /dev/null
+++ b/zerver/webhooks/github/fixtures/pull_request__unlabeled.json
@@ -0,0 +1,504 @@
+{
+ "action": "unlabeled",
+ "number": 1,
+ "pull_request": {
+ "url": "https://api.github.com/repos/soheil-star01/soheil-star01/pulls/1",
+ "id": 2427231083,
+ "node_id": "PR_kwDOJqrH6c6QrJtr",
+ "html_url": "https://github.com/soheil-star01/soheil-star01/pull/1",
+ "diff_url": "https://github.com/soheil-star01/soheil-star01/pull/1.diff",
+ "patch_url": "https://github.com/soheil-star01/soheil-star01/pull/1.patch",
+ "issue_url": "https://api.github.com/repos/soheil-star01/soheil-star01/issues/1",
+ "number": 1,
+ "state": "open",
+ "locked": false,
+ "title": "test webhook",
+ "user": {
+ "login": "soheil-star01",
+ "id": 75124326,
+ "node_id": "MDQ6VXNlcjc1MTI0MzI2",
+ "avatar_url": "https://avatars.githubusercontent.com/u/75124326?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/soheil-star01",
+ "html_url": "https://github.com/soheil-star01",
+ "followers_url": "https://api.github.com/users/soheil-star01/followers",
+ "following_url": "https://api.github.com/users/soheil-star01/following{/other_user}",
+ "gists_url": "https://api.github.com/users/soheil-star01/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/soheil-star01/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/soheil-star01/subscriptions",
+ "organizations_url": "https://api.github.com/users/soheil-star01/orgs",
+ "repos_url": "https://api.github.com/users/soheil-star01/repos",
+ "events_url": "https://api.github.com/users/soheil-star01/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/soheil-star01/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "body": null,
+ "created_at": "2025-03-29T20:08:40Z",
+ "updated_at": "2025-03-29T20:14:47Z",
+ "closed_at": null,
+ "merged_at": null,
+ "merge_commit_sha": "4e0ff7451e6e06d8ca9d7a7de7ad5d7135dd5490",
+ "assignee": null,
+ "assignees": [],
+ "requested_reviewers": [],
+ "requested_teams": [],
+ "labels": [],
+ "milestone": null,
+ "draft": false,
+ "commits_url": "https://api.github.com/repos/soheil-star01/soheil-star01/pulls/1/commits",
+ "review_comments_url": "https://api.github.com/repos/soheil-star01/soheil-star01/pulls/1/comments",
+ "review_comment_url": "https://api.github.com/repos/soheil-star01/soheil-star01/pulls/comments{/number}",
+ "comments_url": "https://api.github.com/repos/soheil-star01/soheil-star01/issues/1/comments",
+ "statuses_url": "https://api.github.com/repos/soheil-star01/soheil-star01/statuses/87d7bbbd605ee812b005793c01b0c567dc732bdc",
+ "head": {
+ "label": "soheil-star01:fix/test_webhook",
+ "ref": "fix/test_webhook",
+ "sha": "87d7bbbd605ee812b005793c01b0c567dc732bdc",
+ "user": {
+ "login": "soheil-star01",
+ "id": 75124326,
+ "node_id": "MDQ6VXNlcjc1MTI0MzI2",
+ "avatar_url": "https://avatars.githubusercontent.com/u/75124326?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/soheil-star01",
+ "html_url": "https://github.com/soheil-star01",
+ "followers_url": "https://api.github.com/users/soheil-star01/followers",
+ "following_url": "https://api.github.com/users/soheil-star01/following{/other_user}",
+ "gists_url": "https://api.github.com/users/soheil-star01/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/soheil-star01/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/soheil-star01/subscriptions",
+ "organizations_url": "https://api.github.com/users/soheil-star01/orgs",
+ "repos_url": "https://api.github.com/users/soheil-star01/repos",
+ "events_url": "https://api.github.com/users/soheil-star01/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/soheil-star01/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "repo": {
+ "id": 648726505,
+ "node_id": "R_kgDOJqrH6Q",
+ "name": "soheil-star01",
+ "full_name": "soheil-star01/soheil-star01",
+ "private": false,
+ "owner": {
+ "login": "soheil-star01",
+ "id": 75124326,
+ "node_id": "MDQ6VXNlcjc1MTI0MzI2",
+ "avatar_url": "https://avatars.githubusercontent.com/u/75124326?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/soheil-star01",
+ "html_url": "https://github.com/soheil-star01",
+ "followers_url": "https://api.github.com/users/soheil-star01/followers",
+ "following_url": "https://api.github.com/users/soheil-star01/following{/other_user}",
+ "gists_url": "https://api.github.com/users/soheil-star01/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/soheil-star01/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/soheil-star01/subscriptions",
+ "organizations_url": "https://api.github.com/users/soheil-star01/orgs",
+ "repos_url": "https://api.github.com/users/soheil-star01/repos",
+ "events_url": "https://api.github.com/users/soheil-star01/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/soheil-star01/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "html_url": "https://github.com/soheil-star01/soheil-star01",
+ "description": null,
+ "fork": false,
+ "url": "https://api.github.com/repos/soheil-star01/soheil-star01",
+ "forks_url": "https://api.github.com/repos/soheil-star01/soheil-star01/forks",
+ "keys_url": "https://api.github.com/repos/soheil-star01/soheil-star01/keys{/key_id}",
+ "collaborators_url": "https://api.github.com/repos/soheil-star01/soheil-star01/collaborators{/collaborator}",
+ "teams_url": "https://api.github.com/repos/soheil-star01/soheil-star01/teams",
+ "hooks_url": "https://api.github.com/repos/soheil-star01/soheil-star01/hooks",
+ "issue_events_url": "https://api.github.com/repos/soheil-star01/soheil-star01/issues/events{/number}",
+ "events_url": "https://api.github.com/repos/soheil-star01/soheil-star01/events",
+ "assignees_url": "https://api.github.com/repos/soheil-star01/soheil-star01/assignees{/user}",
+ "branches_url": "https://api.github.com/repos/soheil-star01/soheil-star01/branches{/branch}",
+ "tags_url": "https://api.github.com/repos/soheil-star01/soheil-star01/tags",
+ "blobs_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/blobs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/tags{/sha}",
+ "git_refs_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/refs{/sha}",
+ "trees_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/trees{/sha}",
+ "statuses_url": "https://api.github.com/repos/soheil-star01/soheil-star01/statuses/{sha}",
+ "languages_url": "https://api.github.com/repos/soheil-star01/soheil-star01/languages",
+ "stargazers_url": "https://api.github.com/repos/soheil-star01/soheil-star01/stargazers",
+ "contributors_url": "https://api.github.com/repos/soheil-star01/soheil-star01/contributors",
+ "subscribers_url": "https://api.github.com/repos/soheil-star01/soheil-star01/subscribers",
+ "subscription_url": "https://api.github.com/repos/soheil-star01/soheil-star01/subscription",
+ "commits_url": "https://api.github.com/repos/soheil-star01/soheil-star01/commits{/sha}",
+ "git_commits_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/commits{/sha}",
+ "comments_url": "https://api.github.com/repos/soheil-star01/soheil-star01/comments{/number}",
+ "issue_comment_url": "https://api.github.com/repos/soheil-star01/soheil-star01/issues/comments{/number}",
+ "contents_url": "https://api.github.com/repos/soheil-star01/soheil-star01/contents/{+path}",
+ "compare_url": "https://api.github.com/repos/soheil-star01/soheil-star01/compare/{base}...{head}",
+ "merges_url": "https://api.github.com/repos/soheil-star01/soheil-star01/merges",
+ "archive_url": "https://api.github.com/repos/soheil-star01/soheil-star01/{archive_format}{/ref}",
+ "downloads_url": "https://api.github.com/repos/soheil-star01/soheil-star01/downloads",
+ "issues_url": "https://api.github.com/repos/soheil-star01/soheil-star01/issues{/number}",
+ "pulls_url": "https://api.github.com/repos/soheil-star01/soheil-star01/pulls{/number}",
+ "milestones_url": "https://api.github.com/repos/soheil-star01/soheil-star01/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/soheil-star01/soheil-star01/notifications{?since,all,participating}",
+ "labels_url": "https://api.github.com/repos/soheil-star01/soheil-star01/labels{/name}",
+ "releases_url": "https://api.github.com/repos/soheil-star01/soheil-star01/releases{/id}",
+ "deployments_url": "https://api.github.com/repos/soheil-star01/soheil-star01/deployments",
+ "created_at": "2023-06-02T16:49:34Z",
+ "updated_at": "2023-06-02T16:49:35Z",
+ "pushed_at": "2025-03-29T20:08:21Z",
+ "git_url": "git://github.com/soheil-star01/soheil-star01.git",
+ "ssh_url": "[email protected]:soheil-star01/soheil-star01.git",
+ "clone_url": "https://github.com/soheil-star01/soheil-star01.git",
+ "svn_url": "https://github.com/soheil-star01/soheil-star01",
+ "homepage": null,
+ "size": 2,
+ "stargazers_count": 0,
+ "watchers_count": 0,
+ "language": null,
+ "has_issues": true,
+ "has_projects": true,
+ "has_downloads": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_discussions": false,
+ "forks_count": 0,
+ "mirror_url": null,
+ "archived": false,
+ "disabled": false,
+ "open_issues_count": 1,
+ "license": null,
+ "allow_forking": true,
+ "is_template": false,
+ "web_commit_signoff_required": false,
+ "topics": [],
+ "visibility": "public",
+ "forks": 0,
+ "open_issues": 1,
+ "watchers": 0,
+ "default_branch": "main",
+ "allow_squash_merge": true,
+ "allow_merge_commit": true,
+ "allow_rebase_merge": true,
+ "allow_auto_merge": false,
+ "delete_branch_on_merge": false,
+ "allow_update_branch": false,
+ "use_squash_pr_title_as_default": false,
+ "squash_merge_commit_message": "COMMIT_MESSAGES",
+ "squash_merge_commit_title": "COMMIT_OR_PR_TITLE",
+ "merge_commit_message": "PR_TITLE",
+ "merge_commit_title": "MERGE_MESSAGE"
+ }
+ },
+ "base": {
+ "label": "soheil-star01:main",
+ "ref": "main",
+ "sha": "e01f5c370f5a49b296d95ad78a31fa4f9b58b17e",
+ "user": {
+ "login": "soheil-star01",
+ "id": 75124326,
+ "node_id": "MDQ6VXNlcjc1MTI0MzI2",
+ "avatar_url": "https://avatars.githubusercontent.com/u/75124326?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/soheil-star01",
+ "html_url": "https://github.com/soheil-star01",
+ "followers_url": "https://api.github.com/users/soheil-star01/followers",
+ "following_url": "https://api.github.com/users/soheil-star01/following{/other_user}",
+ "gists_url": "https://api.github.com/users/soheil-star01/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/soheil-star01/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/soheil-star01/subscriptions",
+ "organizations_url": "https://api.github.com/users/soheil-star01/orgs",
+ "repos_url": "https://api.github.com/users/soheil-star01/repos",
+ "events_url": "https://api.github.com/users/soheil-star01/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/soheil-star01/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "repo": {
+ "id": 648726505,
+ "node_id": "R_kgDOJqrH6Q",
+ "name": "soheil-star01",
+ "full_name": "soheil-star01/soheil-star01",
+ "private": false,
+ "owner": {
+ "login": "soheil-star01",
+ "id": 75124326,
+ "node_id": "MDQ6VXNlcjc1MTI0MzI2",
+ "avatar_url": "https://avatars.githubusercontent.com/u/75124326?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/soheil-star01",
+ "html_url": "https://github.com/soheil-star01",
+ "followers_url": "https://api.github.com/users/soheil-star01/followers",
+ "following_url": "https://api.github.com/users/soheil-star01/following{/other_user}",
+ "gists_url": "https://api.github.com/users/soheil-star01/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/soheil-star01/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/soheil-star01/subscriptions",
+ "organizations_url": "https://api.github.com/users/soheil-star01/orgs",
+ "repos_url": "https://api.github.com/users/soheil-star01/repos",
+ "events_url": "https://api.github.com/users/soheil-star01/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/soheil-star01/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "html_url": "https://github.com/soheil-star01/soheil-star01",
+ "description": null,
+ "fork": false,
+ "url": "https://api.github.com/repos/soheil-star01/soheil-star01",
+ "forks_url": "https://api.github.com/repos/soheil-star01/soheil-star01/forks",
+ "keys_url": "https://api.github.com/repos/soheil-star01/soheil-star01/keys{/key_id}",
+ "collaborators_url": "https://api.github.com/repos/soheil-star01/soheil-star01/collaborators{/collaborator}",
+ "teams_url": "https://api.github.com/repos/soheil-star01/soheil-star01/teams",
+ "hooks_url": "https://api.github.com/repos/soheil-star01/soheil-star01/hooks",
+ "issue_events_url": "https://api.github.com/repos/soheil-star01/soheil-star01/issues/events{/number}",
+ "events_url": "https://api.github.com/repos/soheil-star01/soheil-star01/events",
+ "assignees_url": "https://api.github.com/repos/soheil-star01/soheil-star01/assignees{/user}",
+ "branches_url": "https://api.github.com/repos/soheil-star01/soheil-star01/branches{/branch}",
+ "tags_url": "https://api.github.com/repos/soheil-star01/soheil-star01/tags",
+ "blobs_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/blobs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/tags{/sha}",
+ "git_refs_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/refs{/sha}",
+ "trees_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/trees{/sha}",
+ "statuses_url": "https://api.github.com/repos/soheil-star01/soheil-star01/statuses/{sha}",
+ "languages_url": "https://api.github.com/repos/soheil-star01/soheil-star01/languages",
+ "stargazers_url": "https://api.github.com/repos/soheil-star01/soheil-star01/stargazers",
+ "contributors_url": "https://api.github.com/repos/soheil-star01/soheil-star01/contributors",
+ "subscribers_url": "https://api.github.com/repos/soheil-star01/soheil-star01/subscribers",
+ "subscription_url": "https://api.github.com/repos/soheil-star01/soheil-star01/subscription",
+ "commits_url": "https://api.github.com/repos/soheil-star01/soheil-star01/commits{/sha}",
+ "git_commits_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/commits{/sha}",
+ "comments_url": "https://api.github.com/repos/soheil-star01/soheil-star01/comments{/number}",
+ "issue_comment_url": "https://api.github.com/repos/soheil-star01/soheil-star01/issues/comments{/number}",
+ "contents_url": "https://api.github.com/repos/soheil-star01/soheil-star01/contents/{+path}",
+ "compare_url": "https://api.github.com/repos/soheil-star01/soheil-star01/compare/{base}...{head}",
+ "merges_url": "https://api.github.com/repos/soheil-star01/soheil-star01/merges",
+ "archive_url": "https://api.github.com/repos/soheil-star01/soheil-star01/{archive_format}{/ref}",
+ "downloads_url": "https://api.github.com/repos/soheil-star01/soheil-star01/downloads",
+ "issues_url": "https://api.github.com/repos/soheil-star01/soheil-star01/issues{/number}",
+ "pulls_url": "https://api.github.com/repos/soheil-star01/soheil-star01/pulls{/number}",
+ "milestones_url": "https://api.github.com/repos/soheil-star01/soheil-star01/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/soheil-star01/soheil-star01/notifications{?since,all,participating}",
+ "labels_url": "https://api.github.com/repos/soheil-star01/soheil-star01/labels{/name}",
+ "releases_url": "https://api.github.com/repos/soheil-star01/soheil-star01/releases{/id}",
+ "deployments_url": "https://api.github.com/repos/soheil-star01/soheil-star01/deployments",
+ "created_at": "2023-06-02T16:49:34Z",
+ "updated_at": "2023-06-02T16:49:35Z",
+ "pushed_at": "2025-03-29T20:08:21Z",
+ "git_url": "git://github.com/soheil-star01/soheil-star01.git",
+ "ssh_url": "[email protected]:soheil-star01/soheil-star01.git",
+ "clone_url": "https://github.com/soheil-star01/soheil-star01.git",
+ "svn_url": "https://github.com/soheil-star01/soheil-star01",
+ "homepage": null,
+ "size": 2,
+ "stargazers_count": 0,
+ "watchers_count": 0,
+ "language": null,
+ "has_issues": true,
+ "has_projects": true,
+ "has_downloads": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_discussions": false,
+ "forks_count": 0,
+ "mirror_url": null,
+ "archived": false,
+ "disabled": false,
+ "open_issues_count": 1,
+ "license": null,
+ "allow_forking": true,
+ "is_template": false,
+ "web_commit_signoff_required": false,
+ "topics": [],
+ "visibility": "public",
+ "forks": 0,
+ "open_issues": 1,
+ "watchers": 0,
+ "default_branch": "main",
+ "allow_squash_merge": true,
+ "allow_merge_commit": true,
+ "allow_rebase_merge": true,
+ "allow_auto_merge": false,
+ "delete_branch_on_merge": false,
+ "allow_update_branch": false,
+ "use_squash_pr_title_as_default": false,
+ "squash_merge_commit_message": "COMMIT_MESSAGES",
+ "squash_merge_commit_title": "COMMIT_OR_PR_TITLE",
+ "merge_commit_message": "PR_TITLE",
+ "merge_commit_title": "MERGE_MESSAGE"
+ }
+ },
+ "_links": {
+ "self": {
+ "href": "https://api.github.com/repos/soheil-star01/soheil-star01/pulls/1"
+ },
+ "html": {
+ "href": "https://github.com/soheil-star01/soheil-star01/pull/1"
+ },
+ "issue": {
+ "href": "https://api.github.com/repos/soheil-star01/soheil-star01/issues/1"
+ },
+ "comments": {
+ "href": "https://api.github.com/repos/soheil-star01/soheil-star01/issues/1/comments"
+ },
+ "review_comments": {
+ "href": "https://api.github.com/repos/soheil-star01/soheil-star01/pulls/1/comments"
+ },
+ "review_comment": {
+ "href": "https://api.github.com/repos/soheil-star01/soheil-star01/pulls/comments{/number}"
+ },
+ "commits": {
+ "href": "https://api.github.com/repos/soheil-star01/soheil-star01/pulls/1/commits"
+ },
+ "statuses": {
+ "href": "https://api.github.com/repos/soheil-star01/soheil-star01/statuses/87d7bbbd605ee812b005793c01b0c567dc732bdc"
+ }
+ },
+ "author_association": "OWNER",
+ "auto_merge": null,
+ "active_lock_reason": null,
+ "merged": false,
+ "mergeable": true,
+ "rebaseable": true,
+ "mergeable_state": "clean",
+ "merged_by": null,
+ "comments": 0,
+ "review_comments": 0,
+ "maintainer_can_modify": false,
+ "commits": 1,
+ "additions": 1,
+ "deletions": 1,
+ "changed_files": 1
+ },
+ "label": {
+ "id": 5575139419,
+ "node_id": "LA_kwDOJqrH6c8AAAABTE3gWw",
+ "url": "https://api.github.com/repos/soheil-star01/soheil-star01/labels/documentation",
+ "name": "documentation",
+ "color": "0075ca",
+ "default": true,
+ "description": "Improvements or additions to documentation"
+ },
+ "repository": {
+ "id": 648726505,
+ "node_id": "R_kgDOJqrH6Q",
+ "name": "soheil-star01",
+ "full_name": "soheil-star01/soheil-star01",
+ "private": false,
+ "owner": {
+ "login": "soheil-star01",
+ "id": 75124326,
+ "node_id": "MDQ6VXNlcjc1MTI0MzI2",
+ "avatar_url": "https://avatars.githubusercontent.com/u/75124326?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/soheil-star01",
+ "html_url": "https://github.com/soheil-star01",
+ "followers_url": "https://api.github.com/users/soheil-star01/followers",
+ "following_url": "https://api.github.com/users/soheil-star01/following{/other_user}",
+ "gists_url": "https://api.github.com/users/soheil-star01/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/soheil-star01/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/soheil-star01/subscriptions",
+ "organizations_url": "https://api.github.com/users/soheil-star01/orgs",
+ "repos_url": "https://api.github.com/users/soheil-star01/repos",
+ "events_url": "https://api.github.com/users/soheil-star01/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/soheil-star01/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ },
+ "html_url": "https://github.com/soheil-star01/soheil-star01",
+ "description": null,
+ "fork": false,
+ "url": "https://api.github.com/repos/soheil-star01/soheil-star01",
+ "forks_url": "https://api.github.com/repos/soheil-star01/soheil-star01/forks",
+ "keys_url": "https://api.github.com/repos/soheil-star01/soheil-star01/keys{/key_id}",
+ "collaborators_url": "https://api.github.com/repos/soheil-star01/soheil-star01/collaborators{/collaborator}",
+ "teams_url": "https://api.github.com/repos/soheil-star01/soheil-star01/teams",
+ "hooks_url": "https://api.github.com/repos/soheil-star01/soheil-star01/hooks",
+ "issue_events_url": "https://api.github.com/repos/soheil-star01/soheil-star01/issues/events{/number}",
+ "events_url": "https://api.github.com/repos/soheil-star01/soheil-star01/events",
+ "assignees_url": "https://api.github.com/repos/soheil-star01/soheil-star01/assignees{/user}",
+ "branches_url": "https://api.github.com/repos/soheil-star01/soheil-star01/branches{/branch}",
+ "tags_url": "https://api.github.com/repos/soheil-star01/soheil-star01/tags",
+ "blobs_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/blobs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/tags{/sha}",
+ "git_refs_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/refs{/sha}",
+ "trees_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/trees{/sha}",
+ "statuses_url": "https://api.github.com/repos/soheil-star01/soheil-star01/statuses/{sha}",
+ "languages_url": "https://api.github.com/repos/soheil-star01/soheil-star01/languages",
+ "stargazers_url": "https://api.github.com/repos/soheil-star01/soheil-star01/stargazers",
+ "contributors_url": "https://api.github.com/repos/soheil-star01/soheil-star01/contributors",
+ "subscribers_url": "https://api.github.com/repos/soheil-star01/soheil-star01/subscribers",
+ "subscription_url": "https://api.github.com/repos/soheil-star01/soheil-star01/subscription",
+ "commits_url": "https://api.github.com/repos/soheil-star01/soheil-star01/commits{/sha}",
+ "git_commits_url": "https://api.github.com/repos/soheil-star01/soheil-star01/git/commits{/sha}",
+ "comments_url": "https://api.github.com/repos/soheil-star01/soheil-star01/comments{/number}",
+ "issue_comment_url": "https://api.github.com/repos/soheil-star01/soheil-star01/issues/comments{/number}",
+ "contents_url": "https://api.github.com/repos/soheil-star01/soheil-star01/contents/{+path}",
+ "compare_url": "https://api.github.com/repos/soheil-star01/soheil-star01/compare/{base}...{head}",
+ "merges_url": "https://api.github.com/repos/soheil-star01/soheil-star01/merges",
+ "archive_url": "https://api.github.com/repos/soheil-star01/soheil-star01/{archive_format}{/ref}",
+ "downloads_url": "https://api.github.com/repos/soheil-star01/soheil-star01/downloads",
+ "issues_url": "https://api.github.com/repos/soheil-star01/soheil-star01/issues{/number}",
+ "pulls_url": "https://api.github.com/repos/soheil-star01/soheil-star01/pulls{/number}",
+ "milestones_url": "https://api.github.com/repos/soheil-star01/soheil-star01/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/soheil-star01/soheil-star01/notifications{?since,all,participating}",
+ "labels_url": "https://api.github.com/repos/soheil-star01/soheil-star01/labels{/name}",
+ "releases_url": "https://api.github.com/repos/soheil-star01/soheil-star01/releases{/id}",
+ "deployments_url": "https://api.github.com/repos/soheil-star01/soheil-star01/deployments",
+ "created_at": "2023-06-02T16:49:34Z",
+ "updated_at": "2023-06-02T16:49:35Z",
+ "pushed_at": "2025-03-29T20:08:21Z",
+ "git_url": "git://github.com/soheil-star01/soheil-star01.git",
+ "ssh_url": "[email protected]:soheil-star01/soheil-star01.git",
+ "clone_url": "https://github.com/soheil-star01/soheil-star01.git",
+ "svn_url": "https://github.com/soheil-star01/soheil-star01",
+ "homepage": null,
+ "size": 2,
+ "stargazers_count": 0,
+ "watchers_count": 0,
+ "language": null,
+ "has_issues": true,
+ "has_projects": true,
+ "has_downloads": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "has_discussions": false,
+ "forks_count": 0,
+ "mirror_url": null,
+ "archived": false,
+ "disabled": false,
+ "open_issues_count": 1,
+ "license": null,
+ "allow_forking": true,
+ "is_template": false,
+ "web_commit_signoff_required": false,
+ "topics": [],
+ "visibility": "public",
+ "forks": 0,
+ "open_issues": 1,
+ "watchers": 0,
+ "default_branch": "main"
+ },
+ "sender": {
+ "login": "soheil-star01",
+ "id": 75124326,
+ "node_id": "MDQ6VXNlcjc1MTI0MzI2",
+ "avatar_url": "https://avatars.githubusercontent.com/u/75124326?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/soheil-star01",
+ "html_url": "https://github.com/soheil-star01",
+ "followers_url": "https://api.github.com/users/soheil-star01/followers",
+ "following_url": "https://api.github.com/users/soheil-star01/following{/other_user}",
+ "gists_url": "https://api.github.com/users/soheil-star01/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/soheil-star01/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/soheil-star01/subscriptions",
+ "organizations_url": "https://api.github.com/users/soheil-star01/orgs",
+ "repos_url": "https://api.github.com/users/soheil-star01/repos",
+ "events_url": "https://api.github.com/users/soheil-star01/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/soheil-star01/received_events",
+ "type": "User",
+ "user_view_type": "public",
+ "site_admin": false
+ }
+}
diff --git a/zerver/webhooks/github/tests.py b/zerver/webhooks/github/tests.py
index 058a4356e2c..697d0af7380 100644
--- a/zerver/webhooks/github/tests.py
+++ b/zerver/webhooks/github/tests.py
@@ -488,6 +488,58 @@ class GitHubWebhookTest(WebhookTestCase):
expected_message = "**eeshangarg** requested [showell](https://github.com/showell) for a review on [PR #1 This is just a test commit](https://github.com/eeshangarg/Scheduler/pull/1)."
self.check_webhook("pull_request__review_requested", expected_topic_name, expected_message)
+ def test_pull_request_labeled_msg(self) -> None:
+ expected_message = "soheil-star01 added the label `documentation` on [PR #1](https://github.com/soheil-star01/soheil-star01/pull/1)."
+ self.check_webhook(
+ "pull_request__labeled", "soheil-star01 / PR #1 test webhook", expected_message
+ )
+
+ def test_pull_request_unlabeled_msg(self) -> None:
+ expected_message = "soheil-star01 removed the label `documentation` from [PR #1](https://github.com/soheil-star01/soheil-star01/pull/1)."
+ self.check_webhook(
+ "pull_request__unlabeled", "soheil-star01 / PR #1 test webhook", expected_message
+ )
+
+ def test_pull_request_review_request_removed_msg(self) -> None:
+ expected_message = "soheil-star01 unassigned redolat from [PR #1 Feat/webhook](https://github.com/techpillars-oy/test1/pull/1)."
+ self.check_webhook(
+ "pull_request__review_request_removed", "test1 / PR #1 Feat/webhook", expected_message
+ )
+
+ def test_pull_request_milestoned_msg(self) -> None:
+ expected_message = "soheil-star01 linked [PR #1](https://github.com/soheil-star01/soheil-star01/pull/1) to the milestone `new_ms`."
+ self.check_webhook(
+ "pull_request__milestoned", "soheil-star01 / PR #1 test webhook", expected_message
+ )
+
+ def test_pull_request_demilestoned_msg(self) -> None:
+ expected_message = "soheil-star01 unlinked [PR #1](https://github.com/soheil-star01/soheil-star01/pull/1) from the milestone `new_ms`."
+ self.check_webhook(
+ "pull_request__demilestoned", "soheil-star01 / PR #1 test webhook", expected_message
+ )
+
+ def test_pull_request_enqueued_msg(self) -> None:
+ expected_message = "soheil-star01 added [PR #1 Feat/webhook](https://github.com/techpillars-oy/test1/pull/1) to the merge queue."
+ self.check_webhook("pull_request__enqueued", "test1 / PR #1 Feat/webhook", expected_message)
+
+ def test_pull_request_dequeued_msg(self) -> None:
+ expected_message = "soheil-star01 removed [PR #1 Feat/webhook](https://github.com/techpillars-oy/test1/pull/1) from the merge queue."
+ self.check_webhook("pull_request__dequeued", "test1 / PR #1 Feat/webhook", expected_message)
+
+ def test_pull_request_reopened_msg(self) -> None:
+ expected_message = "soheil-star01 reopened [PR #7](https://github.com/soheil-star01/soheil-star01/pull/7) from `soheil-star01:feat/webhook` to `soheil-star01:main`."
+ self.check_webhook(
+ "pull_request__reopened", "soheil-star01 / PR #7 Feat/webhook", expected_message
+ )
+
+ def test_pull_request_converted_to_draft_msg(self) -> None:
+ expected_message = "soheil-star01 converted [PR #1 test webhook](https://github.com/soheil-star01/soheil-star01/pull/1) to a draft."
+ self.check_webhook(
+ "pull_request__converted_to_draft",
+ "soheil-star01 / PR #1 test webhook",
+ expected_message,
+ )
+
def test_check_run(self) -> None:
expected_topic_name = "hello-world / checks"
expected_message = """
@@ -529,19 +581,6 @@ A temporary team so that I can get some webhook fixtures!
payload = self.get_body("check_run__in_progress")
self.verify_post_is_ignored(payload, "check_run")
- def test_ignored_pull_request_actions(self) -> None:
- ignored_actions = [
- "approved",
- "converted_to_draft",
- "labeled",
- "review_request_removed",
- "unlabeled",
- ]
- for action in ignored_actions:
- data = dict(action=action)
- payload = orjson.dumps(data).decode()
- self.verify_post_is_ignored(payload, "pull_request")
-
def test_pull_request_review_edited_empty_changes_ignore(self) -> None:
payload = self.get_body("pull_request_review__edited_empty_changes")
self.verify_post_is_ignored(payload, "pull_request_review")
diff --git a/zerver/webhooks/github/view.py b/zerver/webhooks/github/view.py
index 29cf31800d0..0106364f6d7 100644
--- a/zerver/webhooks/github/view.py
+++ b/zerver/webhooks/github/view.py
@@ -90,7 +90,7 @@ def get_opened_or_update_pull_request_body(helper: Helper) -> str:
description = pull_request["body"].tame(check_none_or(check_string))
target_branch = None
base_branch = None
- if action in ("opened", "merged"):
+ if action in ("opened", "merged", "reopened"):
target_branch = pull_request["head"]["label"].tame(check_string)
base_branch = pull_request["base"]["label"].tame(check_string)
@@ -619,6 +619,76 @@ def get_pull_request_review_body(helper: Helper) -> str:
)
+def get_pull_request_review_request_removed_body(helper: Helper) -> str:
+ payload = helper.payload
+
+ sender = get_sender_name(payload)
+ reviewer = payload["requested_reviewer"]["login"].tame(check_string)
+ pr_number = payload["pull_request"]["number"].tame(check_int)
+ title = payload["pull_request"]["title"].tame(check_string)
+ pr_url = payload["pull_request"]["html_url"].tame(check_string)
+
+ return f"{sender} unassigned {reviewer} from [PR #{pr_number} {title}]({pr_url})."
+
+
+def get_pull_request_converted_to_draft_body(helper: Helper) -> str:
+ payload = helper.payload
+ return get_pull_request_event_message(
+ user_name=get_sender_name(payload),
+ action="converted",
+ url=payload["pull_request"]["html_url"].tame(check_string),
+ number=payload["pull_request"]["number"].tame(check_int),
+ title=payload["pull_request"]["title"].tame(check_string),
+ suffix="to a draft",
+ )
+
+
+def get_pull_request_labeled_or_unlabeled_body(helper: Helper) -> str:
+ payload = helper.payload
+ label_name = payload["label"]["name"].tame(check_string)
+ action = payload["action"].tame(check_string)
+ sender = get_sender_name(payload)
+ pr_number = payload["pull_request"]["number"].tame(check_int)
+ pr_url = payload["pull_request"]["html_url"].tame(check_string)
+ preposition = "on" if action == "labeled" else "from"
+ action_word = "added" if action == "labeled" else "removed"
+
+ return f"{sender} {action_word} the label `{label_name}` {preposition} [PR #{pr_number}]({pr_url})."
+
+
+def get_pull_request_milestoned_or_demilestoned_body(helper: Helper) -> str:
+ payload = helper.payload
+ action = payload["action"].tame(check_string)
+
+ if action == "milestoned":
+ suffix = (
+ f"to the milestone `{payload['pull_request']['milestone']['title'].tame(check_string)}`"
+ )
+ else:
+ suffix = f"from the milestone `{payload['milestone']['title'].tame(check_string)}`"
+
+ return get_pull_request_event_message(
+ user_name=get_sender_name(payload),
+ action=action,
+ url=payload["pull_request"]["html_url"].tame(check_string),
+ number=payload["pull_request"]["number"].tame(check_int),
+ suffix=suffix,
+ )
+
+
+def get_pull_request_enqueued_or_dequeued_body(helper: Helper) -> str:
+ payload = helper.payload
+ action = payload["action"].tame(check_string)
+ return get_pull_request_event_message(
+ user_name=get_sender_name(payload),
+ action=action,
+ url=payload["pull_request"]["html_url"].tame(check_string),
+ number=payload["pull_request"]["number"].tame(check_int),
+ title=payload["pull_request"]["title"].tame(check_string),
+ suffix=("to the merge queue" if action == "enqueued" else "from the merge queue"),
+ )
+
+
def get_pull_request_review_comment_body(helper: Helper) -> str:
payload = helper.payload
include_title = helper.include_title
@@ -945,6 +1015,11 @@ EVENT_FUNCTION_MAPPER: dict[str, Callable[[Helper], str]] = {
"pull_request_review": get_pull_request_review_body,
"pull_request_review_comment": get_pull_request_review_comment_body,
"pull_request_review_requested": get_pull_request_review_requested_body,
+ "pull_request_milestoned_or_demilestoned": get_pull_request_milestoned_or_demilestoned_body,
+ "pull_request_enqueued_or_dequeued": get_pull_request_enqueued_or_dequeued_body,
+ "pull_request_labeled_or_unlabeled": get_pull_request_labeled_or_unlabeled_body,
+ "pull_request_converted_to_draft": get_pull_request_converted_to_draft_body,
+ "pull_request_review_request_removed": get_pull_request_review_request_removed_body,
"pull_request_auto_merge": get_pull_request_auto_merge_body,
"locked_or_unlocked_pull_request": get_locked_or_unlocked_pull_request_body,
"push_commits": get_push_commits_body,
@@ -986,10 +1061,6 @@ IGNORED_EVENTS = [
IGNORED_PULL_REQUEST_ACTIONS = [
"approved",
- "converted_to_draft",
- "labeled",
- "review_request_removed",
- "unlabeled",
]
IGNORED_TEAM_ACTIONS = [
@@ -1087,11 +1158,19 @@ PULL_REQUEST_ACTION_TO_EVENT = {
"unassigned": "assigned_or_unassigned_pull_request",
"closed": "closed_pull_request",
"review_requested": "pull_request_review_requested",
+ "review_request_removed": "pull_request_review_request_removed",
"ready_for_review": "pull_request_ready_for_review",
"locked": "locked_or_unlocked_pull_request",
"unlocked": "locked_or_unlocked_pull_request",
"auto_merge_enabled": "pull_request_auto_merge",
"auto_merge_disabled": "pull_request_auto_merge",
+ "milestoned": "pull_request_milestoned_or_demilestoned",
+ "demilestoned": "pull_request_milestoned_or_demilestoned",
+ "enqueued": "pull_request_enqueued_or_dequeued",
+ "dequeued": "pull_request_enqueued_or_dequeued",
+ "labeled": "pull_request_labeled_or_unlabeled",
+ "unlabeled": "pull_request_labeled_or_unlabeled",
+ "converted_to_draft": "pull_request_converted_to_draft",
}
ISSUE_ACTION_TO_EVENT = {
@@ -1124,7 +1203,7 @@ def get_zulip_event_name(
match header_event:
case "pull_request":
if action in IGNORED_PULL_REQUEST_ACTIONS:
- return None
+ return None # nocoverage
return PULL_REQUEST_ACTION_TO_EVENT.get(action)
case "issues":
if action == "opened" and payload.get("changes", {}).get("old_issue"):