mirror of https://github.com/zulip/zulip.git
webhooks/github: Fix repeating description for edits and updates.
This change updates the GitHub Integration webhook get_opened_or_update_pull_request_body method so that the description is only printed if it actually changes. If the update event is a result of some other attribute update, such as an asignee change, then the description is not included in the message sent to the zulip stream. Fixes #16345
This commit is contained in:
parent
6f31a2d49f
commit
16d1ab3d5f
|
@ -0,0 +1,468 @@
|
|||
{
|
||||
"action": "edited",
|
||||
"number": 1,
|
||||
"pull_request": {
|
||||
"url": "https://api.github.com/repos/cozyrohan/public-repo/pulls/1",
|
||||
"id": 521349875,
|
||||
"node_id": "MDExOlB1bGxSZXF1ZXN0NTIxMzQ5ODc1",
|
||||
"html_url": "https://github.com/cozyrohan/public-repo/pull/1",
|
||||
"diff_url": "https://github.com/cozyrohan/public-repo/pull/1.diff",
|
||||
"patch_url": "https://github.com/cozyrohan/public-repo/pull/1.patch",
|
||||
"issue_url": "https://api.github.com/repos/cozyrohan/public-repo/issues/1",
|
||||
"number": 1,
|
||||
"state": "open",
|
||||
"locked": false,
|
||||
"title": "Update the README with new information",
|
||||
"user": {
|
||||
"login": "cozyrohan",
|
||||
"id": 47287291,
|
||||
"node_id": "MDQ6VXNlcjQ3Mjg3Mjkx",
|
||||
"avatar_url": "https://avatars1.githubusercontent.com/u/47287291?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/cozyrohan",
|
||||
"html_url": "https://github.com/cozyrohan",
|
||||
"followers_url": "https://api.github.com/users/cozyrohan/followers",
|
||||
"following_url": "https://api.github.com/users/cozyrohan/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/cozyrohan/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/cozyrohan/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/cozyrohan/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/cozyrohan/orgs",
|
||||
"repos_url": "https://api.github.com/users/cozyrohan/repos",
|
||||
"events_url": "https://api.github.com/users/cozyrohan/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/cozyrohan/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"body": "PR EDITED",
|
||||
"created_at": "2020-11-16T04:38:48Z",
|
||||
"updated_at": "2020-11-16T04:44:01Z",
|
||||
"closed_at": null,
|
||||
"merged_at": null,
|
||||
"merge_commit_sha": "c02597ddf08bf07ae1b6e773570805a48a65bebb",
|
||||
"assignee": null,
|
||||
"assignees": [
|
||||
|
||||
],
|
||||
"requested_reviewers": [
|
||||
|
||||
],
|
||||
"requested_teams": [
|
||||
|
||||
],
|
||||
"labels": [
|
||||
|
||||
],
|
||||
"milestone": null,
|
||||
"draft": false,
|
||||
"commits_url": "https://api.github.com/repos/cozyrohan/public-repo/pulls/1/commits",
|
||||
"review_comments_url": "https://api.github.com/repos/cozyrohan/public-repo/pulls/1/comments",
|
||||
"review_comment_url": "https://api.github.com/repos/cozyrohan/public-repo/pulls/comments{/number}",
|
||||
"comments_url": "https://api.github.com/repos/cozyrohan/public-repo/issues/1/comments",
|
||||
"statuses_url": "https://api.github.com/repos/cozyrohan/public-repo/statuses/95693ecb4451203267e30014e06e4f9249b7d492",
|
||||
"head": {
|
||||
"label": "cozyrohan:issue-#1",
|
||||
"ref": "issue-#1",
|
||||
"sha": "95693ecb4451203267e30014e06e4f9249b7d492",
|
||||
"user": {
|
||||
"login": "cozyrohan",
|
||||
"id": 47287291,
|
||||
"node_id": "MDQ6VXNlcjQ3Mjg3Mjkx",
|
||||
"avatar_url": "https://avatars1.githubusercontent.com/u/47287291?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/cozyrohan",
|
||||
"html_url": "https://github.com/cozyrohan",
|
||||
"followers_url": "https://api.github.com/users/cozyrohan/followers",
|
||||
"following_url": "https://api.github.com/users/cozyrohan/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/cozyrohan/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/cozyrohan/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/cozyrohan/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/cozyrohan/orgs",
|
||||
"repos_url": "https://api.github.com/users/cozyrohan/repos",
|
||||
"events_url": "https://api.github.com/users/cozyrohan/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/cozyrohan/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"repo": {
|
||||
"id": 308816002,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnkzMDg4MTYwMD=",
|
||||
"name": "public-repo",
|
||||
"full_name": "cozyrohan/public-repo",
|
||||
"private": false,
|
||||
"owner": {
|
||||
"login": "cozyrohan",
|
||||
"id": 47287291,
|
||||
"node_id": "MDQ6VXNlcjQ3Mjg3Mjkx",
|
||||
"avatar_url": "https://avatars1.githubusercontent.com/u/47287291?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/cozyrohan",
|
||||
"html_url": "https://github.com/cozyrohan",
|
||||
"followers_url": "https://api.github.com/users/cozyrohan/followers",
|
||||
"following_url": "https://api.github.com/users/cozyrohan/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/cozyrohan/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/cozyrohan/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/cozyrohan/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/cozyrohan/orgs",
|
||||
"repos_url": "https://api.github.com/users/cozyrohan/repos",
|
||||
"events_url": "https://api.github.com/users/cozyrohan/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/cozyrohan/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"html_url": "https://github.com/cozyrohan/public-repo",
|
||||
"description": null,
|
||||
"fork": false,
|
||||
"url": "https://api.github.com/repos/cozyrohan/public-repo",
|
||||
"forks_url": "https://api.github.com/repos/cozyrohan/public-repo/forks",
|
||||
"keys_url": "https://api.github.com/repos/cozyrohan/public-repo/keys{/key_id}",
|
||||
"collaborators_url": "https://api.github.com/repos/cozyrohan/public-repo/collaborators{/collaborator}",
|
||||
"teams_url": "https://api.github.com/repos/cozyrohan/public-repo/teams",
|
||||
"hooks_url": "https://api.github.com/repos/cozyrohan/public-repo/hooks",
|
||||
"issue_events_url": "https://api.github.com/repos/cozyrohan/public-repo/issues/events{/number}",
|
||||
"events_url": "https://api.github.com/repos/cozyrohan/public-repo/events",
|
||||
"assignees_url": "https://api.github.com/repos/cozyrohan/public-repo/assignees{/user}",
|
||||
"branches_url": "https://api.github.com/repos/cozyrohan/public-repo/branches{/branch}",
|
||||
"tags_url": "https://api.github.com/repos/cozyrohan/public-repo/tags",
|
||||
"blobs_url": "https://api.github.com/repos/cozyrohan/public-repo/git/blobs{/sha}",
|
||||
"git_tags_url": "https://api.github.com/repos/cozyrohan/public-repo/git/tags{/sha}",
|
||||
"git_refs_url": "https://api.github.com/repos/cozyrohan/public-repo/git/refs{/sha}",
|
||||
"trees_url": "https://api.github.com/repos/cozyrohan/public-repo/git/trees{/sha}",
|
||||
"statuses_url": "https://api.github.com/repos/cozyrohan/public-repo/statuses/{sha}",
|
||||
"languages_url": "https://api.github.com/repos/cozyrohan/public-repo/languages",
|
||||
"stargazers_url": "https://api.github.com/repos/cozyrohan/public-repo/stargazers",
|
||||
"contributors_url": "https://api.github.com/repos/cozyrohan/public-repo/contributors",
|
||||
"subscribers_url": "https://api.github.com/repos/cozyrohan/public-repo/subscribers",
|
||||
"subscription_url": "https://api.github.com/repos/cozyrohan/public-repo/subscription",
|
||||
"commits_url": "https://api.github.com/repos/cozyrohan/public-repo/commits{/sha}",
|
||||
"git_commits_url": "https://api.github.com/repos/cozyrohan/public-repo/git/commits{/sha}",
|
||||
"comments_url": "https://api.github.com/repos/cozyrohan/public-repo/comments{/number}",
|
||||
"issue_comment_url": "https://api.github.com/repos/cozyrohan/public-repo/issues/comments{/number}",
|
||||
"contents_url": "https://api.github.com/repos/cozyrohan/public-repo/contents/{+path}",
|
||||
"compare_url": "https://api.github.com/repos/cozyrohan/public-repo/compare/{base}...{head}",
|
||||
"merges_url": "https://api.github.com/repos/cozyrohan/public-repo/merges",
|
||||
"archive_url": "https://api.github.com/repos/cozyrohan/public-repo/{archive_format}{/ref}",
|
||||
"downloads_url": "https://api.github.com/repos/cozyrohan/public-repo/downloads",
|
||||
"issues_url": "https://api.github.com/repos/cozyrohan/public-repo/issues{/number}",
|
||||
"pulls_url": "https://api.github.com/repos/cozyrohan/public-repo/pulls{/number}",
|
||||
"milestones_url": "https://api.github.com/repos/cozyrohan/public-repo/milestones{/number}",
|
||||
"notifications_url": "https://api.github.com/repos/cozyrohan/public-repo/notifications{?since,all,participating}",
|
||||
"labels_url": "https://api.github.com/repos/cozyrohan/public-repo/labels{/name}",
|
||||
"releases_url": "https://api.github.com/repos/cozyrohan/public-repo/releases{/id}",
|
||||
"deployments_url": "https://api.github.com/repos/cozyrohan/public-repo/deployments",
|
||||
"created_at": "2020-10-31T06:05:34Z",
|
||||
"updated_at": "2020-11-09T07:21:20Z",
|
||||
"pushed_at": "2020-11-16T04:38:48Z",
|
||||
"git_url": "git://github.com/cozyrohan/public-repo.git",
|
||||
"ssh_url": "git@github.com:cozyrohan/public-repo.git",
|
||||
"clone_url": "https://github.com/cozyrohan/public-repo.git",
|
||||
"svn_url": "https://github.com/cozyrohan/public-repo",
|
||||
"homepage": null,
|
||||
"size": 9,
|
||||
"stargazers_count": 0,
|
||||
"watchers_count": 0,
|
||||
"language": null,
|
||||
"has_issues": true,
|
||||
"has_projects": true,
|
||||
"has_downloads": true,
|
||||
"has_wiki": true,
|
||||
"has_pages": false,
|
||||
"forks_count": 1,
|
||||
"mirror_url": null,
|
||||
"archived": false,
|
||||
"disabled": false,
|
||||
"open_issues_count": 1,
|
||||
"license": null,
|
||||
"forks": 1,
|
||||
"open_issues": 1,
|
||||
"watchers": 0,
|
||||
"default_branch": "main",
|
||||
"allow_squash_merge": true,
|
||||
"allow_merge_commit": true,
|
||||
"allow_rebase_merge": true,
|
||||
"delete_branch_on_merge": false
|
||||
}
|
||||
},
|
||||
"base": {
|
||||
"label": "cozyrohan:main",
|
||||
"ref": "main",
|
||||
"sha": "fc15f74d216675071267507a458c6f9757984e07",
|
||||
"user": {
|
||||
"login": "cozyrohan",
|
||||
"id": 47287291,
|
||||
"node_id": "MDQ6VXNlcjQ3Mjg3Mjkx",
|
||||
"avatar_url": "https://avatars1.githubusercontent.com/u/47287291?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/cozyrohan",
|
||||
"html_url": "https://github.com/cozyrohan",
|
||||
"followers_url": "https://api.github.com/users/cozyrohan/followers",
|
||||
"following_url": "https://api.github.com/users/cozyrohan/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/cozyrohan/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/cozyrohan/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/cozyrohan/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/cozyrohan/orgs",
|
||||
"repos_url": "https://api.github.com/users/cozyrohan/repos",
|
||||
"events_url": "https://api.github.com/users/cozyrohan/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/cozyrohan/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"repo": {
|
||||
"id": 308816002,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnkzMDg4MTYwMDI=",
|
||||
"name": "public-repo",
|
||||
"full_name": "cozyrohan/public-repo",
|
||||
"private": false,
|
||||
"owner": {
|
||||
"login": "cozyrohan",
|
||||
"id": 47287291,
|
||||
"node_id": "MDQ6VXNlcjQ3Mjg3Mjkx",
|
||||
"avatar_url": "https://avatars1.githubusercontent.com/u/47287291?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/cozyrohan",
|
||||
"html_url": "https://github.com/cozyrohan",
|
||||
"followers_url": "https://api.github.com/users/cozyrohan/followers",
|
||||
"following_url": "https://api.github.com/users/cozyrohan/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/cozyrohan/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/cozyrohan/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/cozyrohan/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/cozyrohan/orgs",
|
||||
"repos_url": "https://api.github.com/users/cozyrohan/repos",
|
||||
"events_url": "https://api.github.com/users/cozyrohan/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/cozyrohan/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"html_url": "https://github.com/cozyrohan/public-repo",
|
||||
"description": null,
|
||||
"fork": false,
|
||||
"url": "https://api.github.com/repos/cozyrohan/public-repo",
|
||||
"forks_url": "https://api.github.com/repos/cozyrohan/public-repo/forks",
|
||||
"keys_url": "https://api.github.com/repos/cozyrohan/public-repo/keys{/key_id}",
|
||||
"collaborators_url": "https://api.github.com/repos/cozyrohan/public-repo/collaborators{/collaborator}",
|
||||
"teams_url": "https://api.github.com/repos/cozyrohan/public-repo/teams",
|
||||
"hooks_url": "https://api.github.com/repos/cozyrohan/public-repo/hooks",
|
||||
"issue_events_url": "https://api.github.com/repos/cozyrohan/public-repo/issues/events{/number}",
|
||||
"events_url": "https://api.github.com/repos/cozyrohan/public-repo/events",
|
||||
"assignees_url": "https://api.github.com/repos/cozyrohan/public-repo/assignees{/user}",
|
||||
"branches_url": "https://api.github.com/repos/cozyrohan/public-repo/branches{/branch}",
|
||||
"tags_url": "https://api.github.com/repos/cozyrohan/public-repo/tags",
|
||||
"blobs_url": "https://api.github.com/repos/cozyrohan/public-repo/git/blobs{/sha}",
|
||||
"git_tags_url": "https://api.github.com/repos/cozyrohan/public-repo/git/tags{/sha}",
|
||||
"git_refs_url": "https://api.github.com/repos/cozyrohan/public-repo/git/refs{/sha}",
|
||||
"trees_url": "https://api.github.com/repos/cozyrohan/public-repo/git/trees{/sha}",
|
||||
"statuses_url": "https://api.github.com/repos/cozyrohan/public-repo/statuses/{sha}",
|
||||
"languages_url": "https://api.github.com/repos/cozyrohan/public-repo/languages",
|
||||
"stargazers_url": "https://api.github.com/repos/cozyrohan/public-repo/stargazers",
|
||||
"contributors_url": "https://api.github.com/repos/cozyrohan/public-repo/contributors",
|
||||
"subscribers_url": "https://api.github.com/repos/cozyrohan/public-repo/subscribers",
|
||||
"subscription_url": "https://api.github.com/repos/cozyrohan/public-repo/subscription",
|
||||
"commits_url": "https://api.github.com/repos/cozyrohan/public-repo/commits{/sha}",
|
||||
"git_commits_url": "https://api.github.com/repos/cozyrohan/public-repo/git/commits{/sha}",
|
||||
"comments_url": "https://api.github.com/repos/cozyrohan/public-repo/comments{/number}",
|
||||
"issue_comment_url": "https://api.github.com/repos/cozyrohan/public-repo/issues/comments{/number}",
|
||||
"contents_url": "https://api.github.com/repos/cozyrohan/public-repo/contents/{+path}",
|
||||
"compare_url": "https://api.github.com/repos/cozyrohan/public-repo/compare/{base}...{head}",
|
||||
"merges_url": "https://api.github.com/repos/cozyrohan/public-repo/merges",
|
||||
"archive_url": "https://api.github.com/repos/cozyrohan/public-repo/{archive_format}{/ref}",
|
||||
"downloads_url": "https://api.github.com/repos/cozyrohan/public-repo/downloads",
|
||||
"issues_url": "https://api.github.com/repos/cozyrohan/public-repo/issues{/number}",
|
||||
"pulls_url": "https://api.github.com/repos/cozyrohan/public-repo/pulls{/number}",
|
||||
"milestones_url": "https://api.github.com/repos/cozyrohan/public-repo/milestones{/number}",
|
||||
"notifications_url": "https://api.github.com/repos/cozyrohan/public-repo/notifications{?since,all,participating}",
|
||||
"labels_url": "https://api.github.com/repos/cozyrohan/public-repo/labels{/name}",
|
||||
"releases_url": "https://api.github.com/repos/cozyrohan/public-repo/releases{/id}",
|
||||
"deployments_url": "https://api.github.com/repos/cozyrohan/public-repo/deployments",
|
||||
"created_at": "2020-10-31T06:05:34Z",
|
||||
"updated_at": "2020-11-09T07:21:20Z",
|
||||
"pushed_at": "2020-11-16T04:38:48Z",
|
||||
"git_url": "git://github.com/cozyrohan/public-repo.git",
|
||||
"ssh_url": "git@github.com:cozyrohan/public-repo.git",
|
||||
"clone_url": "https://github.com/cozyrohan/public-repo.git",
|
||||
"svn_url": "https://github.com/cozyrohan/public-repo",
|
||||
"homepage": null,
|
||||
"size": 9,
|
||||
"stargazers_count": 0,
|
||||
"watchers_count": 0,
|
||||
"language": null,
|
||||
"has_issues": true,
|
||||
"has_projects": true,
|
||||
"has_downloads": true,
|
||||
"has_wiki": true,
|
||||
"has_pages": false,
|
||||
"forks_count": 1,
|
||||
"mirror_url": null,
|
||||
"archived": false,
|
||||
"disabled": false,
|
||||
"open_issues_count": 1,
|
||||
"license": null,
|
||||
"forks": 1,
|
||||
"open_issues": 1,
|
||||
"watchers": 0,
|
||||
"default_branch": "main",
|
||||
"allow_squash_merge": true,
|
||||
"allow_merge_commit": true,
|
||||
"allow_rebase_merge": true,
|
||||
"delete_branch_on_merge": false
|
||||
}
|
||||
},
|
||||
"_links": {
|
||||
"self": {
|
||||
"href": "https://api.github.com/repos/cozyrohan/public-repo/pulls/1"
|
||||
},
|
||||
"html": {
|
||||
"href": "https://github.com/cozyrohan/public-repo/pull/1"
|
||||
},
|
||||
"issue": {
|
||||
"href": "https://api.github.com/repos/cozyrohan/public-repo/issues/1"
|
||||
},
|
||||
"comments": {
|
||||
"href": "https://api.github.com/repos/cozyrohan/public-repo/issues/1/comments"
|
||||
},
|
||||
"review_comments": {
|
||||
"href": "https://api.github.com/repos/cozyrohan/public-repo/pulls/1/comments"
|
||||
},
|
||||
"review_comment": {
|
||||
"href": "https://api.github.com/repos/cozyrohan/public-repo/pulls/comments{/number}"
|
||||
},
|
||||
"commits": {
|
||||
"href": "https://api.github.com/repos/cozyrohan/public-repo/pulls/1/commits"
|
||||
},
|
||||
"statuses": {
|
||||
"href": "https://api.github.com/repos/cozyrohan/public-repo/statuses/95693ecb4451203267e30014e06e4f9249b7d492"
|
||||
}
|
||||
},
|
||||
"author_association": "OWNER",
|
||||
"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": 6,
|
||||
"additions": 6,
|
||||
"deletions": 0,
|
||||
"changed_files": 6
|
||||
},
|
||||
"changes": {
|
||||
"body": {
|
||||
"from": "PR created"
|
||||
}
|
||||
},
|
||||
"repository": {
|
||||
"id": 308816002,
|
||||
"node_id": "MDEwOlJlcG9zaXRvcnkzMDg4MTYwMDI=",
|
||||
"name": "public-repo",
|
||||
"full_name": "cozyrohan/public-repo",
|
||||
"private": false,
|
||||
"owner": {
|
||||
"login": "cozyrohan",
|
||||
"id": 47287291,
|
||||
"node_id": "MDQ6VXNlcjQ3Mjg3Mjkx",
|
||||
"avatar_url": "https://avatars1.githubusercontent.com/u/47287291?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/cozyrohan",
|
||||
"html_url": "https://github.com/cozyrohan",
|
||||
"followers_url": "https://api.github.com/users/cozyrohan/followers",
|
||||
"following_url": "https://api.github.com/users/cozyrohan/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/cozyrohan/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/cozyrohan/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/cozyrohan/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/cozyrohan/orgs",
|
||||
"repos_url": "https://api.github.com/users/cozyrohan/repos",
|
||||
"events_url": "https://api.github.com/users/cozyrohan/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/cozyrohan/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
},
|
||||
"html_url": "https://github.com/cozyrohan/public-repo",
|
||||
"description": null,
|
||||
"fork": false,
|
||||
"url": "https://api.github.com/repos/cozyrohan/public-repo",
|
||||
"forks_url": "https://api.github.com/repos/cozyrohan/public-repo/forks",
|
||||
"keys_url": "https://api.github.com/repos/cozyrohan/public-repo/keys{/key_id}",
|
||||
"collaborators_url": "https://api.github.com/repos/cozyrohan/public-repo/collaborators{/collaborator}",
|
||||
"teams_url": "https://api.github.com/repos/cozyrohan/public-repo/teams",
|
||||
"hooks_url": "https://api.github.com/repos/cozyrohan/public-repo/hooks",
|
||||
"issue_events_url": "https://api.github.com/repos/cozyrohan/public-repo/issues/events{/number}",
|
||||
"events_url": "https://api.github.com/repos/cozyrohan/public-repo/events",
|
||||
"assignees_url": "https://api.github.com/repos/cozyrohan/public-repo/assignees{/user}",
|
||||
"branches_url": "https://api.github.com/repos/cozyrohan/public-repo/branches{/branch}",
|
||||
"tags_url": "https://api.github.com/repos/cozyrohan/public-repo/tags",
|
||||
"blobs_url": "https://api.github.com/repos/cozyrohan/public-repo/git/blobs{/sha}",
|
||||
"git_tags_url": "https://api.github.com/repos/cozyrohan/public-repo/git/tags{/sha}",
|
||||
"git_refs_url": "https://api.github.com/repos/cozyrohan/public-repo/git/refs{/sha}",
|
||||
"trees_url": "https://api.github.com/repos/cozyrohan/public-repo/git/trees{/sha}",
|
||||
"statuses_url": "https://api.github.com/repos/cozyrohan/public-repo/statuses/{sha}",
|
||||
"languages_url": "https://api.github.com/repos/cozyrohan/public-repo/languages",
|
||||
"stargazers_url": "https://api.github.com/repos/cozyrohan/public-repo/stargazers",
|
||||
"contributors_url": "https://api.github.com/repos/cozyrohan/public-repo/contributors",
|
||||
"subscribers_url": "https://api.github.com/repos/cozyrohan/public-repo/subscribers",
|
||||
"subscription_url": "https://api.github.com/repos/cozyrohan/public-repo/subscription",
|
||||
"commits_url": "https://api.github.com/repos/cozyrohan/public-repo/commits{/sha}",
|
||||
"git_commits_url": "https://api.github.com/repos/cozyrohan/public-repo/git/commits{/sha}",
|
||||
"comments_url": "https://api.github.com/repos/cozyrohan/public-repo/comments{/number}",
|
||||
"issue_comment_url": "https://api.github.com/repos/cozyrohan/public-repo/issues/comments{/number}",
|
||||
"contents_url": "https://api.github.com/repos/cozyrohan/public-repo/contents/{+path}",
|
||||
"compare_url": "https://api.github.com/repos/cozyrohan/public-repo/compare/{base}...{head}",
|
||||
"merges_url": "https://api.github.com/repos/cozyrohan/public-repo/merges",
|
||||
"archive_url": "https://api.github.com/repos/cozyrohan/public-repo/{archive_format}{/ref}",
|
||||
"downloads_url": "https://api.github.com/repos/cozyrohan/public-repo/downloads",
|
||||
"issues_url": "https://api.github.com/repos/cozyrohan/public-repo/issues{/number}",
|
||||
"pulls_url": "https://api.github.com/repos/cozyrohan/public-repo/pulls{/number}",
|
||||
"milestones_url": "https://api.github.com/repos/cozyrohan/public-repo/milestones{/number}",
|
||||
"notifications_url": "https://api.github.com/repos/cozyrohan/public-repo/notifications{?since,all,participating}",
|
||||
"labels_url": "https://api.github.com/repos/cozyrohan/public-repo/labels{/name}",
|
||||
"releases_url": "https://api.github.com/repos/cozyrohan/public-repo/releases{/id}",
|
||||
"deployments_url": "https://api.github.com/repos/cozyrohan/public-repo/deployments",
|
||||
"created_at": "2020-10-31T06:05:34Z",
|
||||
"updated_at": "2020-11-09T07:21:20Z",
|
||||
"pushed_at": "2020-11-16T04:38:48Z",
|
||||
"git_url": "git://github.com/cozyrohan/public-repo.git",
|
||||
"ssh_url": "git@github.com:cozyrohan/public-repo.git",
|
||||
"clone_url": "https://github.com/cozyrohan/public-repo.git",
|
||||
"svn_url": "https://github.com/cozyrohan/public-repo",
|
||||
"homepage": null,
|
||||
"size": 9,
|
||||
"stargazers_count": 0,
|
||||
"watchers_count": 0,
|
||||
"language": null,
|
||||
"has_issues": true,
|
||||
"has_projects": true,
|
||||
"has_downloads": true,
|
||||
"has_wiki": true,
|
||||
"has_pages": false,
|
||||
"forks_count": 1,
|
||||
"mirror_url": null,
|
||||
"archived": false,
|
||||
"disabled": false,
|
||||
"open_issues_count": 1,
|
||||
"license": null,
|
||||
"forks": 1,
|
||||
"open_issues": 1,
|
||||
"watchers": 0,
|
||||
"default_branch": "main"
|
||||
},
|
||||
"sender": {
|
||||
"login": "cozyrohan",
|
||||
"id": 47287291,
|
||||
"node_id": "MDQ6VXNlcjQ3Mjg3Mjkx",
|
||||
"avatar_url": "https://avatars1.githubusercontent.com/u/47287291?v=4",
|
||||
"gravatar_id": "",
|
||||
"url": "https://api.github.com/users/cozyrohan",
|
||||
"html_url": "https://github.com/cozyrohan",
|
||||
"followers_url": "https://api.github.com/users/cozyrohan/followers",
|
||||
"following_url": "https://api.github.com/users/cozyrohan/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/cozyrohan/gists{/gist_id}",
|
||||
"starred_url": "https://api.github.com/users/cozyrohan/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/cozyrohan/subscriptions",
|
||||
"organizations_url": "https://api.github.com/users/cozyrohan/orgs",
|
||||
"repos_url": "https://api.github.com/users/cozyrohan/repos",
|
||||
"events_url": "https://api.github.com/users/cozyrohan/events{/privacy}",
|
||||
"received_events_url": "https://api.github.com/users/cozyrohan/received_events",
|
||||
"type": "User",
|
||||
"site_admin": false
|
||||
}
|
||||
}
|
|
@ -0,0 +1,419 @@
|
|||
{
|
||||
"action": "synchronize",
|
||||
"after": "254e93f580ae7f8483b2a2aa3f9c393f826a98f5",
|
||||
"before": "8695425244b08195a835228f67c679c394260faa",
|
||||
"number": 1,
|
||||
"pull_request": {
|
||||
"_links": {
|
||||
"comments": {
|
||||
"href": "https://api.github.com/repos/baxterthehacker/public-repo/issues/5/comments"
|
||||
},
|
||||
"commits": {
|
||||
"href": "https://api.github.com/repos/baxterthehackerpublic-repo/pull/1/commits"
|
||||
},
|
||||
"html": {
|
||||
"href": "https://github.com/baxterthehacker/public-repo/pull/1"
|
||||
},
|
||||
"issue": {
|
||||
"href": "https://api.github.com/repos/baxterthehacker/public-repo/issues/5"
|
||||
},
|
||||
"review_comment": {
|
||||
"href": "https://api.github.com/repos/baxterthehacker/public-repo/pulls/comments{/number}"
|
||||
},
|
||||
"review_comments": {
|
||||
"href": "https://api.github.com/repos/baxterthehackerpublic-repo/pull/1/comments"
|
||||
},
|
||||
"self": {
|
||||
"href": "https://api.github.com/repos/baxterthehackerpublic-repo/pull/1"
|
||||
},
|
||||
"statuses": {
|
||||
"href": "https://api.github.com/repos/baxterthehacker/public-repo/statuses/254e93f580ae7f8483b2a2aa3f9c393f826a98f5"
|
||||
}
|
||||
},
|
||||
"additions": 113,
|
||||
"assignee": null,
|
||||
"assignees": [],
|
||||
"base": {
|
||||
"label": "baxterthehacker:master",
|
||||
"ref": "master",
|
||||
"repo": {
|
||||
"archive_url": "https://api.github.com/repos/baxterthehacker/public-repo/{archive_format}{/ref}",
|
||||
"assignees_url": "https://api.github.com/repos/baxterthehacker/public-repo/assignees{/user}",
|
||||
"blobs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/blobs{/sha}",
|
||||
"branches_url": "https://api.github.com/repos/baxterthehacker/public-repo/branches{/branch}",
|
||||
"clone_url": "https://github.com/baxterthehacker/public-repo.git",
|
||||
"collaborators_url": "https://api.github.com/repos/baxterthehacker/public-repo/collaborators{/collaborator}",
|
||||
"comments_url": "https://api.github.com/repos/baxterthehacker/public-repo/comments{/number}",
|
||||
"commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/commits{/sha}",
|
||||
"compare_url": "https://api.github.com/repos/baxterthehacker/public-repo/compare/{base}...{head}",
|
||||
"contents_url": "https://api.github.com/repos/baxterthehacker/public-repo/contents/{+path}",
|
||||
"contributors_url": "https://api.github.com/repos/baxterthehacker/public-repo/contributors",
|
||||
"created_at": "2016-03-11T16:16:19Z",
|
||||
"default_branch": "master",
|
||||
"deployments_url": "https://api.github.com/repos/baxterthehacker/public-repo/deployments",
|
||||
"description": "Zulip server - powerful open source group chat",
|
||||
"downloads_url": "https://api.github.com/repos/baxterthehacker/public-repo/downloads",
|
||||
"events_url": "https://api.github.com/repos/baxterthehacker/public-repo/events",
|
||||
"fork": true,
|
||||
"forks": 0,
|
||||
"forks_count": 0,
|
||||
"forks_url": "https://api.github.com/repos/baxterthehacker/public-repo/forks",
|
||||
"full_name": "baxterthehacker/public-repo",
|
||||
"git_commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/commits{/sha}",
|
||||
"git_refs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/refs{/sha}",
|
||||
"git_tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/tags{/sha}",
|
||||
"git_url": "git://github.com/baxterthehacker/public-repo.git",
|
||||
"has_downloads": true,
|
||||
"has_issues": false,
|
||||
"has_pages": false,
|
||||
"has_wiki": true,
|
||||
"homepage": "",
|
||||
"hooks_url": "https://api.github.com/repos/baxterthehacker/public-repo/hooks",
|
||||
"html_url": "https://github.com/baxterthehacker/public-repo",
|
||||
"id": 53679793,
|
||||
"issue_comment_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/comments{/number}",
|
||||
"issue_events_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/events{/number}",
|
||||
"issues_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues{/number}",
|
||||
"keys_url": "https://api.github.com/repos/baxterthehacker/public-repo/keys{/key_id}",
|
||||
"labels_url": "https://api.github.com/repos/baxterthehacker/public-repo/labels{/name}",
|
||||
"language": "Python",
|
||||
"languages_url": "https://api.github.com/repos/baxterthehacker/public-repo/languages",
|
||||
"merges_url": "https://api.github.com/repos/baxterthehacker/public-repo/merges",
|
||||
"milestones_url": "https://api.github.com/repos/baxterthehacker/public-repo/milestones{/number}",
|
||||
"mirror_url": null,
|
||||
"name": "public-repo",
|
||||
"notifications_url": "https://api.github.com/repos/baxterthehacker/public-repo/notifications{?since,all,participating}",
|
||||
"open_issues": 3,
|
||||
"open_issues_count": 3,
|
||||
"owner": {
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/5993758?v=3",
|
||||
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
||||
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
||||
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
||||
"gravatar_id": "",
|
||||
"html_url": "https://github.com/baxterthehacker",
|
||||
"id": 5993758,
|
||||
"login": "baxterthehacker",
|
||||
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
||||
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
||||
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
||||
"site_admin": false,
|
||||
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
||||
"type": "User",
|
||||
"url": "https://api.github.com/users/baxterthehacker"
|
||||
},
|
||||
"private": false,
|
||||
"pulls_url": "https://api.github.com/repos/baxterthehacker/public-repo/pulls{/number}",
|
||||
"pushed_at": "2017-02-02T19:18:40Z",
|
||||
"releases_url": "https://api.github.com/repos/baxterthehacker/public-repo/releases{/id}",
|
||||
"size": 140189,
|
||||
"ssh_url": "git@github.com:baxterthehacker/public-repo.git",
|
||||
"stargazers_count": 0,
|
||||
"stargazers_url": "https://api.github.com/repos/baxterthehacker/public-repo/stargazers",
|
||||
"statuses_url": "https://api.github.com/repos/baxterthehacker/public-repo/statuses/{sha}",
|
||||
"subscribers_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscribers",
|
||||
"subscription_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscription",
|
||||
"svn_url": "https://github.com/baxterthehacker/public-repo",
|
||||
"tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/tags",
|
||||
"teams_url": "https://api.github.com/repos/baxterthehacker/public-repo/teams",
|
||||
"trees_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/trees{/sha}",
|
||||
"updated_at": "2016-03-11T16:16:26Z",
|
||||
"url": "https://api.github.com/repos/baxterthehacker/public-repo",
|
||||
"watchers": 0,
|
||||
"watchers_count": 0
|
||||
},
|
||||
"sha": "e8b08803202979248c117a3e6213c0735e93542c",
|
||||
"user": {
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/5993758?v=3",
|
||||
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
||||
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
||||
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
||||
"gravatar_id": "",
|
||||
"html_url": "https://github.com/baxterthehacker",
|
||||
"id": 5993758,
|
||||
"login": "baxterthehacker",
|
||||
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
||||
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
||||
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
||||
"site_admin": false,
|
||||
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
||||
"type": "User",
|
||||
"url": "https://api.github.com/users/baxterthehacker"
|
||||
}
|
||||
},
|
||||
"body": "This is the description. It describes the PR. It is not blank.",
|
||||
"changed_files": 2,
|
||||
"closed_at": null,
|
||||
"comments": 0,
|
||||
"comments_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/5/comments",
|
||||
"commits": 1,
|
||||
"commits_url": "https://api.github.com/repos/baxterthehackerpublic-repo/pull/1/commits",
|
||||
"created_at": "2017-02-02T19:11:19Z",
|
||||
"deletions": 1,
|
||||
"diff_url": "https://github.com/baxterthehacker/public-repo/pull/1.diff",
|
||||
"head": {
|
||||
"label": "baxterthehacker:changes",
|
||||
"ref": "changes",
|
||||
"repo": {
|
||||
"archive_url": "https://api.github.com/repos/baxterthehacker/public-repo/{archive_format}{/ref}",
|
||||
"assignees_url": "https://api.github.com/repos/baxterthehacker/public-repo/assignees{/user}",
|
||||
"blobs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/blobs{/sha}",
|
||||
"branches_url": "https://api.github.com/repos/baxterthehacker/public-repo/branches{/branch}",
|
||||
"clone_url": "https://github.com/baxterthehacker/public-repo.git",
|
||||
"collaborators_url": "https://api.github.com/repos/baxterthehacker/public-repo/collaborators{/collaborator}",
|
||||
"comments_url": "https://api.github.com/repos/baxterthehacker/public-repo/comments{/number}",
|
||||
"commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/commits{/sha}",
|
||||
"compare_url": "https://api.github.com/repos/baxterthehacker/public-repo/compare/{base}...{head}",
|
||||
"contents_url": "https://api.github.com/repos/baxterthehacker/public-repo/contents/{+path}",
|
||||
"contributors_url": "https://api.github.com/repos/baxterthehacker/public-repo/contributors",
|
||||
"created_at": "2016-03-11T16:16:19Z",
|
||||
"default_branch": "master",
|
||||
"deployments_url": "https://api.github.com/repos/baxterthehacker/public-repo/deployments",
|
||||
"description": "Zulip server - powerful open source group chat",
|
||||
"downloads_url": "https://api.github.com/repos/baxterthehacker/public-repo/downloads",
|
||||
"events_url": "https://api.github.com/repos/baxterthehacker/public-repo/events",
|
||||
"fork": true,
|
||||
"forks": 0,
|
||||
"forks_count": 0,
|
||||
"forks_url": "https://api.github.com/repos/baxterthehacker/public-repo/forks",
|
||||
"full_name": "baxterthehacker/public-repo",
|
||||
"git_commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/commits{/sha}",
|
||||
"git_refs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/refs{/sha}",
|
||||
"git_tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/tags{/sha}",
|
||||
"git_url": "git://github.com/baxterthehacker/public-repo.git",
|
||||
"has_downloads": true,
|
||||
"has_issues": false,
|
||||
"has_pages": false,
|
||||
"has_wiki": true,
|
||||
"homepage": "",
|
||||
"hooks_url": "https://api.github.com/repos/baxterthehacker/public-repo/hooks",
|
||||
"html_url": "https://github.com/baxterthehacker/public-repo",
|
||||
"id": 53679793,
|
||||
"issue_comment_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/comments{/number}",
|
||||
"issue_events_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/events{/number}",
|
||||
"issues_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues{/number}",
|
||||
"keys_url": "https://api.github.com/repos/baxterthehacker/public-repo/keys{/key_id}",
|
||||
"labels_url": "https://api.github.com/repos/baxterthehacker/public-repo/labels{/name}",
|
||||
"language": "Python",
|
||||
"languages_url": "https://api.github.com/repos/baxterthehacker/public-repo/languages",
|
||||
"merges_url": "https://api.github.com/repos/baxterthehacker/public-repo/merges",
|
||||
"milestones_url": "https://api.github.com/repos/baxterthehacker/public-repo/milestones{/number}",
|
||||
"mirror_url": null,
|
||||
"name": "public-repo",
|
||||
"notifications_url": "https://api.github.com/repos/baxterthehacker/public-repo/notifications{?since,all,participating}",
|
||||
"open_issues": 3,
|
||||
"open_issues_count": 3,
|
||||
"owner": {
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/5993758?v=3",
|
||||
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
||||
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
||||
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
||||
"gravatar_id": "",
|
||||
"html_url": "https://github.com/baxterthehacker",
|
||||
"id": 5993758,
|
||||
"login": "baxterthehacker",
|
||||
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
||||
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
||||
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
||||
"site_admin": false,
|
||||
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
||||
"type": "User",
|
||||
"url": "https://api.github.com/users/baxterthehacker"
|
||||
},
|
||||
"private": false,
|
||||
"pulls_url": "https://api.github.com/repos/baxterthehacker/public-repo/pulls{/number}",
|
||||
"pushed_at": "2017-02-02T19:18:40Z",
|
||||
"releases_url": "https://api.github.com/repos/baxterthehacker/public-repo/releases{/id}",
|
||||
"size": 140189,
|
||||
"ssh_url": "git@github.com:baxterthehacker/public-repo.git",
|
||||
"stargazers_count": 0,
|
||||
"stargazers_url": "https://api.github.com/repos/baxterthehacker/public-repo/stargazers",
|
||||
"statuses_url": "https://api.github.com/repos/baxterthehacker/public-repo/statuses/{sha}",
|
||||
"subscribers_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscribers",
|
||||
"subscription_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscription",
|
||||
"svn_url": "https://github.com/baxterthehacker/public-repo",
|
||||
"tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/tags",
|
||||
"teams_url": "https://api.github.com/repos/baxterthehacker/public-repo/teams",
|
||||
"trees_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/trees{/sha}",
|
||||
"updated_at": "2016-03-11T16:16:26Z",
|
||||
"url": "https://api.github.com/repos/baxterthehacker/public-repo",
|
||||
"watchers": 0,
|
||||
"watchers_count": 0
|
||||
},
|
||||
"sha": "254e93f580ae7f8483b2a2aa3f9c393f826a98f5",
|
||||
"user": {
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/5993758?v=3",
|
||||
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
||||
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
||||
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
||||
"gravatar_id": "",
|
||||
"html_url": "https://github.com/baxterthehacker",
|
||||
"id": 5993758,
|
||||
"login": "baxterthehacker",
|
||||
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
||||
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
||||
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
||||
"site_admin": false,
|
||||
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
||||
"type": "User",
|
||||
"url": "https://api.github.com/users/baxterthehacker"
|
||||
}
|
||||
},
|
||||
"html_url": "https://github.com/baxterthehacker/public-repo/pull/1",
|
||||
"id": 104403437,
|
||||
"issue_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/5",
|
||||
"locked": false,
|
||||
"maintainer_can_modify": false,
|
||||
"merge_commit_sha": "0ab2243bf16cac3ba2d9c66aa5b9487e7c51017d",
|
||||
"mergeable": null,
|
||||
"mergeable_state": "unknown",
|
||||
"merged": false,
|
||||
"merged_at": null,
|
||||
"merged_by": null,
|
||||
"milestone": null,
|
||||
"number": 1,
|
||||
"patch_url": "https://github.com/baxterthehacker/public-repo/pull/1.patch",
|
||||
"review_comment_url": "https://api.github.com/repos/baxterthehacker/public-repo/pulls/comments{/number}",
|
||||
"review_comments": 0,
|
||||
"review_comments_url": "https://api.github.com/repos/baxterthehackerpublic-repo/pull/1/comments",
|
||||
"state": "open",
|
||||
"statuses_url": "https://api.github.com/repos/baxterthehacker/public-repo/statuses/254e93f580ae7f8483b2a2aa3f9c393f826a98f5",
|
||||
"title": "Update the README with new information",
|
||||
"updated_at": "2017-02-02T19:18:41Z",
|
||||
"url": "https://api.github.com/repos/baxterthehackerpublic-repo/pull/1",
|
||||
"user": {
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/5993758?v=3",
|
||||
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
||||
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
||||
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
||||
"gravatar_id": "",
|
||||
"html_url": "https://github.com/baxterthehacker",
|
||||
"id": 5993758,
|
||||
"login": "baxterthehacker",
|
||||
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
||||
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
||||
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
||||
"site_admin": false,
|
||||
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
||||
"type": "User",
|
||||
"url": "https://api.github.com/users/baxterthehacker"
|
||||
}
|
||||
},
|
||||
"repository": {
|
||||
"archive_url": "https://api.github.com/repos/baxterthehacker/public-repo/{archive_format}{/ref}",
|
||||
"assignees_url": "https://api.github.com/repos/baxterthehacker/public-repo/assignees{/user}",
|
||||
"blobs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/blobs{/sha}",
|
||||
"branches_url": "https://api.github.com/repos/baxterthehacker/public-repo/branches{/branch}",
|
||||
"clone_url": "https://github.com/baxterthehacker/public-repo.git",
|
||||
"collaborators_url": "https://api.github.com/repos/baxterthehacker/public-repo/collaborators{/collaborator}",
|
||||
"comments_url": "https://api.github.com/repos/baxterthehacker/public-repo/comments{/number}",
|
||||
"commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/commits{/sha}",
|
||||
"compare_url": "https://api.github.com/repos/baxterthehacker/public-repo/compare/{base}...{head}",
|
||||
"contents_url": "https://api.github.com/repos/baxterthehacker/public-repo/contents/{+path}",
|
||||
"contributors_url": "https://api.github.com/repos/baxterthehacker/public-repo/contributors",
|
||||
"created_at": "2016-03-11T16:16:19Z",
|
||||
"default_branch": "master",
|
||||
"deployments_url": "https://api.github.com/repos/baxterthehacker/public-repo/deployments",
|
||||
"description": "Zulip server - powerful open source group chat",
|
||||
"downloads_url": "https://api.github.com/repos/baxterthehacker/public-repo/downloads",
|
||||
"events_url": "https://api.github.com/repos/baxterthehacker/public-repo/events",
|
||||
"fork": true,
|
||||
"forks": 0,
|
||||
"forks_count": 0,
|
||||
"forks_url": "https://api.github.com/repos/baxterthehacker/public-repo/forks",
|
||||
"full_name": "baxterthehacker/public-repo",
|
||||
"git_commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/commits{/sha}",
|
||||
"git_refs_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/refs{/sha}",
|
||||
"git_tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/tags{/sha}",
|
||||
"git_url": "git://github.com/baxterthehacker/public-repo.git",
|
||||
"has_downloads": true,
|
||||
"has_issues": false,
|
||||
"has_pages": false,
|
||||
"has_wiki": true,
|
||||
"homepage": "",
|
||||
"hooks_url": "https://api.github.com/repos/baxterthehacker/public-repo/hooks",
|
||||
"html_url": "https://github.com/baxterthehacker/public-repo",
|
||||
"id": 53679793,
|
||||
"issue_comment_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/comments{/number}",
|
||||
"issue_events_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/events{/number}",
|
||||
"issues_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues{/number}",
|
||||
"keys_url": "https://api.github.com/repos/baxterthehacker/public-repo/keys{/key_id}",
|
||||
"labels_url": "https://api.github.com/repos/baxterthehacker/public-repo/labels{/name}",
|
||||
"language": "Python",
|
||||
"languages_url": "https://api.github.com/repos/baxterthehacker/public-repo/languages",
|
||||
"merges_url": "https://api.github.com/repos/baxterthehacker/public-repo/merges",
|
||||
"milestones_url": "https://api.github.com/repos/baxterthehacker/public-repo/milestones{/number}",
|
||||
"mirror_url": null,
|
||||
"name": "public-repo",
|
||||
"notifications_url": "https://api.github.com/repos/baxterthehacker/public-repo/notifications{?since,all,participating}",
|
||||
"open_issues": 3,
|
||||
"open_issues_count": 3,
|
||||
"owner": {
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/5993758?v=3",
|
||||
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
||||
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
||||
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
||||
"gravatar_id": "",
|
||||
"html_url": "https://github.com/baxterthehacker",
|
||||
"id": 5993758,
|
||||
"login": "baxterthehacker",
|
||||
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
||||
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
||||
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
||||
"site_admin": false,
|
||||
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
||||
"type": "User",
|
||||
"url": "https://api.github.com/users/baxterthehacker"
|
||||
},
|
||||
"private": false,
|
||||
"pulls_url": "https://api.github.com/repos/baxterthehacker/public-repo/pulls{/number}",
|
||||
"pushed_at": "2017-02-02T19:18:40Z",
|
||||
"releases_url": "https://api.github.com/repos/baxterthehacker/public-repo/releases{/id}",
|
||||
"size": 140189,
|
||||
"ssh_url": "git@github.com:baxterthehacker/public-repo.git",
|
||||
"stargazers_count": 0,
|
||||
"stargazers_url": "https://api.github.com/repos/baxterthehacker/public-repo/stargazers",
|
||||
"statuses_url": "https://api.github.com/repos/baxterthehacker/public-repo/statuses/{sha}",
|
||||
"subscribers_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscribers",
|
||||
"subscription_url": "https://api.github.com/repos/baxterthehacker/public-repo/subscription",
|
||||
"svn_url": "https://github.com/baxterthehacker/public-repo",
|
||||
"tags_url": "https://api.github.com/repos/baxterthehacker/public-repo/tags",
|
||||
"teams_url": "https://api.github.com/repos/baxterthehacker/public-repo/teams",
|
||||
"trees_url": "https://api.github.com/repos/baxterthehacker/public-repo/git/trees{/sha}",
|
||||
"updated_at": "2016-03-11T16:16:26Z",
|
||||
"url": "https://api.github.com/repos/baxterthehacker/public-repo",
|
||||
"watchers": 0,
|
||||
"watchers_count": 0
|
||||
},
|
||||
"sender": {
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/5993758?v=3",
|
||||
"events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}",
|
||||
"followers_url": "https://api.github.com/users/baxterthehacker/followers",
|
||||
"following_url": "https://api.github.com/users/baxterthehacker/following{/other_user}",
|
||||
"gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}",
|
||||
"gravatar_id": "",
|
||||
"html_url": "https://github.com/baxterthehacker",
|
||||
"id": 5993758,
|
||||
"login": "baxterthehacker",
|
||||
"organizations_url": "https://api.github.com/users/baxterthehacker/orgs",
|
||||
"received_events_url": "https://api.github.com/users/baxterthehacker/received_events",
|
||||
"repos_url": "https://api.github.com/users/baxterthehacker/repos",
|
||||
"site_admin": false,
|
||||
"starred_url": "https://api.github.com/users/baxterthehacker/starred{/owner}{/repo}",
|
||||
"subscriptions_url": "https://api.github.com/users/baxterthehacker/subscriptions",
|
||||
"type": "User",
|
||||
"url": "https://api.github.com/users/baxterthehacker"
|
||||
}
|
||||
}
|
|
@ -251,6 +251,14 @@ class GitHubWebhookTest(WebhookTestCase):
|
|||
expected_message = "baxterthehacker edited [PR #1](https://github.com/baxterthehacker/public-repo/pull/1) from `changes` to `master`."
|
||||
self.check_webhook("pull_request__edited", TOPIC_PR, expected_message)
|
||||
|
||||
def test_pull_request_edited_with_body_change(self) -> None:
|
||||
expected_message = "cozyrohan edited [PR #1](https://github.com/cozyrohan/public-repo/pull/1) from `issue-#1` to `main`:\n\n~~~ quote\nPR EDITED\n~~~"
|
||||
self.check_webhook("pull_request__edited_with_body_change", TOPIC_PR, expected_message)
|
||||
|
||||
def test_pull_request_synchronized_with_body(self) -> None:
|
||||
expected_message = "baxterthehacker updated [PR #1](https://github.com/baxterthehacker/public-repo/pull/1) from `changes` to `master`."
|
||||
self.check_webhook("pull_request__synchronized_with_body", TOPIC_PR, expected_message)
|
||||
|
||||
def test_pull_request_assigned_msg(self) -> None:
|
||||
expected_message = "baxterthehacker assigned [PR #1](https://github.com/baxterthehacker/public-repo/pull/1) to baxterthehacker."
|
||||
self.check_webhook("pull_request__assigned", TOPIC_PR, expected_message)
|
||||
|
|
|
@ -55,6 +55,10 @@ def get_opened_or_update_pull_request_body(helper: Helper) -> str:
|
|||
assignee = None
|
||||
if pull_request.get('assignee'):
|
||||
assignee = pull_request['assignee']['login']
|
||||
description = None
|
||||
changes = payload.get('changes', {})
|
||||
if 'body' in changes or action == 'opened':
|
||||
description = pull_request['body']
|
||||
|
||||
return get_pull_request_event_message(
|
||||
get_sender_name(payload),
|
||||
|
@ -62,7 +66,7 @@ def get_opened_or_update_pull_request_body(helper: Helper) -> str:
|
|||
pull_request['html_url'],
|
||||
target_branch=pull_request['head']['ref'],
|
||||
base_branch=pull_request['base']['ref'],
|
||||
message=pull_request['body'],
|
||||
message=description,
|
||||
assignee=assignee,
|
||||
number=pull_request['number'],
|
||||
title=pull_request['title'] if include_title else None,
|
||||
|
|
Loading…
Reference in New Issue