mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
integrations: Fix bug with github multiple reviews requested on PR.
Fixes a bug in which multiple of the same messages are posted when multiple reviewers are added to a PR. Fixes #18393.
This commit is contained in:
@@ -1,503 +0,0 @@
|
|||||||
{
|
|
||||||
"action": "review_requested",
|
|
||||||
"number": 1,
|
|
||||||
"pull_request": {
|
|
||||||
"_links": {
|
|
||||||
"comments": {
|
|
||||||
"href": "https://api.github.com/repos/eeshangarg/Scheduler/issues/1/comments"
|
|
||||||
},
|
|
||||||
"commits": {
|
|
||||||
"href": "https://api.github.com/repos/eeshangarg/Scheduler/pulls/1/commits"
|
|
||||||
},
|
|
||||||
"html": {
|
|
||||||
"href": "https://github.com/eeshangarg/Scheduler/pull/1"
|
|
||||||
},
|
|
||||||
"issue": {
|
|
||||||
"href": "https://api.github.com/repos/eeshangarg/Scheduler/issues/1"
|
|
||||||
},
|
|
||||||
"review_comment": {
|
|
||||||
"href": "https://api.github.com/repos/eeshangarg/Scheduler/pulls/comments{/number}"
|
|
||||||
},
|
|
||||||
"review_comments": {
|
|
||||||
"href": "https://api.github.com/repos/eeshangarg/Scheduler/pulls/1/comments"
|
|
||||||
},
|
|
||||||
"self": {
|
|
||||||
"href": "https://api.github.com/repos/eeshangarg/Scheduler/pulls/1"
|
|
||||||
},
|
|
||||||
"statuses": {
|
|
||||||
"href": "https://api.github.com/repos/eeshangarg/Scheduler/statuses/2c51f5499275c21c140cb7dbc8d0f60545187579"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"additions": 2,
|
|
||||||
"assignee": null,
|
|
||||||
"assignees": [],
|
|
||||||
"author_association": "OWNER",
|
|
||||||
"base": {
|
|
||||||
"label": "eeshangarg:master",
|
|
||||||
"ref": "master",
|
|
||||||
"repo": {
|
|
||||||
"archive_url": "https://api.github.com/repos/eeshangarg/Scheduler/{archive_format}{/ref}",
|
|
||||||
"archived": false,
|
|
||||||
"assignees_url": "https://api.github.com/repos/eeshangarg/Scheduler/assignees{/user}",
|
|
||||||
"blobs_url": "https://api.github.com/repos/eeshangarg/Scheduler/git/blobs{/sha}",
|
|
||||||
"branches_url": "https://api.github.com/repos/eeshangarg/Scheduler/branches{/branch}",
|
|
||||||
"clone_url": "https://github.com/eeshangarg/Scheduler.git",
|
|
||||||
"collaborators_url": "https://api.github.com/repos/eeshangarg/Scheduler/collaborators{/collaborator}",
|
|
||||||
"comments_url": "https://api.github.com/repos/eeshangarg/Scheduler/comments{/number}",
|
|
||||||
"commits_url": "https://api.github.com/repos/eeshangarg/Scheduler/commits{/sha}",
|
|
||||||
"compare_url": "https://api.github.com/repos/eeshangarg/Scheduler/compare/{base}...{head}",
|
|
||||||
"contents_url": "https://api.github.com/repos/eeshangarg/Scheduler/contents/{+path}",
|
|
||||||
"contributors_url": "https://api.github.com/repos/eeshangarg/Scheduler/contributors",
|
|
||||||
"created_at": "2017-11-24T03:43:58Z",
|
|
||||||
"default_branch": "master",
|
|
||||||
"deployments_url": "https://api.github.com/repos/eeshangarg/Scheduler/deployments",
|
|
||||||
"description": "CS3716 Project",
|
|
||||||
"downloads_url": "https://api.github.com/repos/eeshangarg/Scheduler/downloads",
|
|
||||||
"events_url": "https://api.github.com/repos/eeshangarg/Scheduler/events",
|
|
||||||
"fork": false,
|
|
||||||
"forks": 0,
|
|
||||||
"forks_count": 0,
|
|
||||||
"forks_url": "https://api.github.com/repos/eeshangarg/Scheduler/forks",
|
|
||||||
"full_name": "eeshangarg/Scheduler",
|
|
||||||
"git_commits_url": "https://api.github.com/repos/eeshangarg/Scheduler/git/commits{/sha}",
|
|
||||||
"git_refs_url": "https://api.github.com/repos/eeshangarg/Scheduler/git/refs{/sha}",
|
|
||||||
"git_tags_url": "https://api.github.com/repos/eeshangarg/Scheduler/git/tags{/sha}",
|
|
||||||
"git_url": "git://github.com/eeshangarg/Scheduler.git",
|
|
||||||
"has_downloads": true,
|
|
||||||
"has_issues": true,
|
|
||||||
"has_pages": false,
|
|
||||||
"has_projects": true,
|
|
||||||
"has_wiki": true,
|
|
||||||
"homepage": null,
|
|
||||||
"hooks_url": "https://api.github.com/repos/eeshangarg/Scheduler/hooks",
|
|
||||||
"html_url": "https://github.com/eeshangarg/Scheduler",
|
|
||||||
"id": 111873102,
|
|
||||||
"issue_comment_url": "https://api.github.com/repos/eeshangarg/Scheduler/issues/comments{/number}",
|
|
||||||
"issue_events_url": "https://api.github.com/repos/eeshangarg/Scheduler/issues/events{/number}",
|
|
||||||
"issues_url": "https://api.github.com/repos/eeshangarg/Scheduler/issues{/number}",
|
|
||||||
"keys_url": "https://api.github.com/repos/eeshangarg/Scheduler/keys{/key_id}",
|
|
||||||
"labels_url": "https://api.github.com/repos/eeshangarg/Scheduler/labels{/name}",
|
|
||||||
"language": "Java",
|
|
||||||
"languages_url": "https://api.github.com/repos/eeshangarg/Scheduler/languages",
|
|
||||||
"license": null,
|
|
||||||
"merges_url": "https://api.github.com/repos/eeshangarg/Scheduler/merges",
|
|
||||||
"milestones_url": "https://api.github.com/repos/eeshangarg/Scheduler/milestones{/number}",
|
|
||||||
"mirror_url": null,
|
|
||||||
"name": "Scheduler",
|
|
||||||
"node_id": "MDEwOlJlcG9zaXRvcnkxMTE4NzMxMDI=",
|
|
||||||
"notifications_url": "https://api.github.com/repos/eeshangarg/Scheduler/notifications{?since,all,participating}",
|
|
||||||
"open_issues": 1,
|
|
||||||
"open_issues_count": 1,
|
|
||||||
"owner": {
|
|
||||||
"avatar_url": "https://avatars0.githubusercontent.com/u/7251823?v=4",
|
|
||||||
"events_url": "https://api.github.com/users/eeshangarg/events{/privacy}",
|
|
||||||
"followers_url": "https://api.github.com/users/eeshangarg/followers",
|
|
||||||
"following_url": "https://api.github.com/users/eeshangarg/following{/other_user}",
|
|
||||||
"gists_url": "https://api.github.com/users/eeshangarg/gists{/gist_id}",
|
|
||||||
"gravatar_id": "",
|
|
||||||
"html_url": "https://github.com/eeshangarg",
|
|
||||||
"id": 7251823,
|
|
||||||
"login": "eeshangarg",
|
|
||||||
"node_id": "MDQ6VXNlcjcyNTE4MjM=",
|
|
||||||
"organizations_url": "https://api.github.com/users/eeshangarg/orgs",
|
|
||||||
"received_events_url": "https://api.github.com/users/eeshangarg/received_events",
|
|
||||||
"repos_url": "https://api.github.com/users/eeshangarg/repos",
|
|
||||||
"site_admin": false,
|
|
||||||
"starred_url": "https://api.github.com/users/eeshangarg/starred{/owner}{/repo}",
|
|
||||||
"subscriptions_url": "https://api.github.com/users/eeshangarg/subscriptions",
|
|
||||||
"type": "User",
|
|
||||||
"url": "https://api.github.com/users/eeshangarg"
|
|
||||||
},
|
|
||||||
"private": false,
|
|
||||||
"pulls_url": "https://api.github.com/repos/eeshangarg/Scheduler/pulls{/number}",
|
|
||||||
"pushed_at": "2018-07-01T15:05:26Z",
|
|
||||||
"releases_url": "https://api.github.com/repos/eeshangarg/Scheduler/releases{/id}",
|
|
||||||
"size": 8,
|
|
||||||
"ssh_url": "git@github.com:eeshangarg/Scheduler.git",
|
|
||||||
"stargazers_count": 0,
|
|
||||||
"stargazers_url": "https://api.github.com/repos/eeshangarg/Scheduler/stargazers",
|
|
||||||
"statuses_url": "https://api.github.com/repos/eeshangarg/Scheduler/statuses/{sha}",
|
|
||||||
"subscribers_url": "https://api.github.com/repos/eeshangarg/Scheduler/subscribers",
|
|
||||||
"subscription_url": "https://api.github.com/repos/eeshangarg/Scheduler/subscription",
|
|
||||||
"svn_url": "https://github.com/eeshangarg/Scheduler",
|
|
||||||
"tags_url": "https://api.github.com/repos/eeshangarg/Scheduler/tags",
|
|
||||||
"teams_url": "https://api.github.com/repos/eeshangarg/Scheduler/teams",
|
|
||||||
"trees_url": "https://api.github.com/repos/eeshangarg/Scheduler/git/trees{/sha}",
|
|
||||||
"updated_at": "2017-11-24T03:45:29Z",
|
|
||||||
"url": "https://api.github.com/repos/eeshangarg/Scheduler",
|
|
||||||
"watchers": 0,
|
|
||||||
"watchers_count": 0
|
|
||||||
},
|
|
||||||
"sha": "4f8a093f7046fcc58b0826d21586d1b537b0112b",
|
|
||||||
"user": {
|
|
||||||
"avatar_url": "https://avatars0.githubusercontent.com/u/7251823?v=4",
|
|
||||||
"events_url": "https://api.github.com/users/eeshangarg/events{/privacy}",
|
|
||||||
"followers_url": "https://api.github.com/users/eeshangarg/followers",
|
|
||||||
"following_url": "https://api.github.com/users/eeshangarg/following{/other_user}",
|
|
||||||
"gists_url": "https://api.github.com/users/eeshangarg/gists{/gist_id}",
|
|
||||||
"gravatar_id": "",
|
|
||||||
"html_url": "https://github.com/eeshangarg",
|
|
||||||
"id": 7251823,
|
|
||||||
"login": "eeshangarg",
|
|
||||||
"node_id": "MDQ6VXNlcjcyNTE4MjM=",
|
|
||||||
"organizations_url": "https://api.github.com/users/eeshangarg/orgs",
|
|
||||||
"received_events_url": "https://api.github.com/users/eeshangarg/received_events",
|
|
||||||
"repos_url": "https://api.github.com/users/eeshangarg/repos",
|
|
||||||
"site_admin": false,
|
|
||||||
"starred_url": "https://api.github.com/users/eeshangarg/starred{/owner}{/repo}",
|
|
||||||
"subscriptions_url": "https://api.github.com/users/eeshangarg/subscriptions",
|
|
||||||
"type": "User",
|
|
||||||
"url": "https://api.github.com/users/eeshangarg"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"body": "",
|
|
||||||
"changed_files": 1,
|
|
||||||
"closed_at": null,
|
|
||||||
"comments": 0,
|
|
||||||
"comments_url": "https://api.github.com/repos/eeshangarg/Scheduler/issues/1/comments",
|
|
||||||
"commits": 1,
|
|
||||||
"commits_url": "https://api.github.com/repos/eeshangarg/Scheduler/pulls/1/commits",
|
|
||||||
"created_at": "2018-07-01T15:05:25Z",
|
|
||||||
"deletions": 0,
|
|
||||||
"diff_url": "https://github.com/eeshangarg/Scheduler/pull/1.diff",
|
|
||||||
"head": {
|
|
||||||
"label": "eeshangarg:new-branch",
|
|
||||||
"ref": "new-branch",
|
|
||||||
"repo": {
|
|
||||||
"archive_url": "https://api.github.com/repos/eeshangarg/Scheduler/{archive_format}{/ref}",
|
|
||||||
"archived": false,
|
|
||||||
"assignees_url": "https://api.github.com/repos/eeshangarg/Scheduler/assignees{/user}",
|
|
||||||
"blobs_url": "https://api.github.com/repos/eeshangarg/Scheduler/git/blobs{/sha}",
|
|
||||||
"branches_url": "https://api.github.com/repos/eeshangarg/Scheduler/branches{/branch}",
|
|
||||||
"clone_url": "https://github.com/eeshangarg/Scheduler.git",
|
|
||||||
"collaborators_url": "https://api.github.com/repos/eeshangarg/Scheduler/collaborators{/collaborator}",
|
|
||||||
"comments_url": "https://api.github.com/repos/eeshangarg/Scheduler/comments{/number}",
|
|
||||||
"commits_url": "https://api.github.com/repos/eeshangarg/Scheduler/commits{/sha}",
|
|
||||||
"compare_url": "https://api.github.com/repos/eeshangarg/Scheduler/compare/{base}...{head}",
|
|
||||||
"contents_url": "https://api.github.com/repos/eeshangarg/Scheduler/contents/{+path}",
|
|
||||||
"contributors_url": "https://api.github.com/repos/eeshangarg/Scheduler/contributors",
|
|
||||||
"created_at": "2017-11-24T03:43:58Z",
|
|
||||||
"default_branch": "master",
|
|
||||||
"deployments_url": "https://api.github.com/repos/eeshangarg/Scheduler/deployments",
|
|
||||||
"description": "CS3716 Project",
|
|
||||||
"downloads_url": "https://api.github.com/repos/eeshangarg/Scheduler/downloads",
|
|
||||||
"events_url": "https://api.github.com/repos/eeshangarg/Scheduler/events",
|
|
||||||
"fork": false,
|
|
||||||
"forks": 0,
|
|
||||||
"forks_count": 0,
|
|
||||||
"forks_url": "https://api.github.com/repos/eeshangarg/Scheduler/forks",
|
|
||||||
"full_name": "eeshangarg/Scheduler",
|
|
||||||
"git_commits_url": "https://api.github.com/repos/eeshangarg/Scheduler/git/commits{/sha}",
|
|
||||||
"git_refs_url": "https://api.github.com/repos/eeshangarg/Scheduler/git/refs{/sha}",
|
|
||||||
"git_tags_url": "https://api.github.com/repos/eeshangarg/Scheduler/git/tags{/sha}",
|
|
||||||
"git_url": "git://github.com/eeshangarg/Scheduler.git",
|
|
||||||
"has_downloads": true,
|
|
||||||
"has_issues": true,
|
|
||||||
"has_pages": false,
|
|
||||||
"has_projects": true,
|
|
||||||
"has_wiki": true,
|
|
||||||
"homepage": null,
|
|
||||||
"hooks_url": "https://api.github.com/repos/eeshangarg/Scheduler/hooks",
|
|
||||||
"html_url": "https://github.com/eeshangarg/Scheduler",
|
|
||||||
"id": 111873102,
|
|
||||||
"issue_comment_url": "https://api.github.com/repos/eeshangarg/Scheduler/issues/comments{/number}",
|
|
||||||
"issue_events_url": "https://api.github.com/repos/eeshangarg/Scheduler/issues/events{/number}",
|
|
||||||
"issues_url": "https://api.github.com/repos/eeshangarg/Scheduler/issues{/number}",
|
|
||||||
"keys_url": "https://api.github.com/repos/eeshangarg/Scheduler/keys{/key_id}",
|
|
||||||
"labels_url": "https://api.github.com/repos/eeshangarg/Scheduler/labels{/name}",
|
|
||||||
"language": "Java",
|
|
||||||
"languages_url": "https://api.github.com/repos/eeshangarg/Scheduler/languages",
|
|
||||||
"license": null,
|
|
||||||
"merges_url": "https://api.github.com/repos/eeshangarg/Scheduler/merges",
|
|
||||||
"milestones_url": "https://api.github.com/repos/eeshangarg/Scheduler/milestones{/number}",
|
|
||||||
"mirror_url": null,
|
|
||||||
"name": "Scheduler",
|
|
||||||
"node_id": "MDEwOlJlcG9zaXRvcnkxMTE4NzMxMDI=",
|
|
||||||
"notifications_url": "https://api.github.com/repos/eeshangarg/Scheduler/notifications{?since,all,participating}",
|
|
||||||
"open_issues": 1,
|
|
||||||
"open_issues_count": 1,
|
|
||||||
"owner": {
|
|
||||||
"avatar_url": "https://avatars0.githubusercontent.com/u/7251823?v=4",
|
|
||||||
"events_url": "https://api.github.com/users/eeshangarg/events{/privacy}",
|
|
||||||
"followers_url": "https://api.github.com/users/eeshangarg/followers",
|
|
||||||
"following_url": "https://api.github.com/users/eeshangarg/following{/other_user}",
|
|
||||||
"gists_url": "https://api.github.com/users/eeshangarg/gists{/gist_id}",
|
|
||||||
"gravatar_id": "",
|
|
||||||
"html_url": "https://github.com/eeshangarg",
|
|
||||||
"id": 7251823,
|
|
||||||
"login": "eeshangarg",
|
|
||||||
"node_id": "MDQ6VXNlcjcyNTE4MjM=",
|
|
||||||
"organizations_url": "https://api.github.com/users/eeshangarg/orgs",
|
|
||||||
"received_events_url": "https://api.github.com/users/eeshangarg/received_events",
|
|
||||||
"repos_url": "https://api.github.com/users/eeshangarg/repos",
|
|
||||||
"site_admin": false,
|
|
||||||
"starred_url": "https://api.github.com/users/eeshangarg/starred{/owner}{/repo}",
|
|
||||||
"subscriptions_url": "https://api.github.com/users/eeshangarg/subscriptions",
|
|
||||||
"type": "User",
|
|
||||||
"url": "https://api.github.com/users/eeshangarg"
|
|
||||||
},
|
|
||||||
"private": false,
|
|
||||||
"pulls_url": "https://api.github.com/repos/eeshangarg/Scheduler/pulls{/number}",
|
|
||||||
"pushed_at": "2018-07-01T15:05:26Z",
|
|
||||||
"releases_url": "https://api.github.com/repos/eeshangarg/Scheduler/releases{/id}",
|
|
||||||
"size": 8,
|
|
||||||
"ssh_url": "git@github.com:eeshangarg/Scheduler.git",
|
|
||||||
"stargazers_count": 0,
|
|
||||||
"stargazers_url": "https://api.github.com/repos/eeshangarg/Scheduler/stargazers",
|
|
||||||
"statuses_url": "https://api.github.com/repos/eeshangarg/Scheduler/statuses/{sha}",
|
|
||||||
"subscribers_url": "https://api.github.com/repos/eeshangarg/Scheduler/subscribers",
|
|
||||||
"subscription_url": "https://api.github.com/repos/eeshangarg/Scheduler/subscription",
|
|
||||||
"svn_url": "https://github.com/eeshangarg/Scheduler",
|
|
||||||
"tags_url": "https://api.github.com/repos/eeshangarg/Scheduler/tags",
|
|
||||||
"teams_url": "https://api.github.com/repos/eeshangarg/Scheduler/teams",
|
|
||||||
"trees_url": "https://api.github.com/repos/eeshangarg/Scheduler/git/trees{/sha}",
|
|
||||||
"updated_at": "2017-11-24T03:45:29Z",
|
|
||||||
"url": "https://api.github.com/repos/eeshangarg/Scheduler",
|
|
||||||
"watchers": 0,
|
|
||||||
"watchers_count": 0
|
|
||||||
},
|
|
||||||
"sha": "2c51f5499275c21c140cb7dbc8d0f60545187579",
|
|
||||||
"user": {
|
|
||||||
"avatar_url": "https://avatars0.githubusercontent.com/u/7251823?v=4",
|
|
||||||
"events_url": "https://api.github.com/users/eeshangarg/events{/privacy}",
|
|
||||||
"followers_url": "https://api.github.com/users/eeshangarg/followers",
|
|
||||||
"following_url": "https://api.github.com/users/eeshangarg/following{/other_user}",
|
|
||||||
"gists_url": "https://api.github.com/users/eeshangarg/gists{/gist_id}",
|
|
||||||
"gravatar_id": "",
|
|
||||||
"html_url": "https://github.com/eeshangarg",
|
|
||||||
"id": 7251823,
|
|
||||||
"login": "eeshangarg",
|
|
||||||
"node_id": "MDQ6VXNlcjcyNTE4MjM=",
|
|
||||||
"organizations_url": "https://api.github.com/users/eeshangarg/orgs",
|
|
||||||
"received_events_url": "https://api.github.com/users/eeshangarg/received_events",
|
|
||||||
"repos_url": "https://api.github.com/users/eeshangarg/repos",
|
|
||||||
"site_admin": false,
|
|
||||||
"starred_url": "https://api.github.com/users/eeshangarg/starred{/owner}{/repo}",
|
|
||||||
"subscriptions_url": "https://api.github.com/users/eeshangarg/subscriptions",
|
|
||||||
"type": "User",
|
|
||||||
"url": "https://api.github.com/users/eeshangarg"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"html_url": "https://github.com/eeshangarg/Scheduler/pull/1",
|
|
||||||
"id": 198528464,
|
|
||||||
"issue_url": "https://api.github.com/repos/eeshangarg/Scheduler/issues/1",
|
|
||||||
"labels": [],
|
|
||||||
"locked": false,
|
|
||||||
"maintainer_can_modify": false,
|
|
||||||
"merge_commit_sha": "8d163e54b62d82ee95286c83661315a941f75164",
|
|
||||||
"mergeable": true,
|
|
||||||
"mergeable_state": "clean",
|
|
||||||
"merged": false,
|
|
||||||
"merged_at": null,
|
|
||||||
"merged_by": null,
|
|
||||||
"milestone": null,
|
|
||||||
"node_id": "MDExOlB1bGxSZXF1ZXN0MTk4NTI4NDY0",
|
|
||||||
"number": 1,
|
|
||||||
"patch_url": "https://github.com/eeshangarg/Scheduler/pull/1.patch",
|
|
||||||
"rebaseable": true,
|
|
||||||
"requested_reviewers": [
|
|
||||||
{
|
|
||||||
"avatar_url": "https://avatars2.githubusercontent.com/u/142908?v=4",
|
|
||||||
"events_url": "https://api.github.com/users/showell/events{/privacy}",
|
|
||||||
"followers_url": "https://api.github.com/users/showell/followers",
|
|
||||||
"following_url": "https://api.github.com/users/showell/following{/other_user}",
|
|
||||||
"gists_url": "https://api.github.com/users/showell/gists{/gist_id}",
|
|
||||||
"gravatar_id": "",
|
|
||||||
"html_url": "https://github.com/showell",
|
|
||||||
"id": 142908,
|
|
||||||
"login": "showell",
|
|
||||||
"node_id": "MDQ6VXNlcjE0MjkwOA==",
|
|
||||||
"organizations_url": "https://api.github.com/users/showell/orgs",
|
|
||||||
"received_events_url": "https://api.github.com/users/showell/received_events",
|
|
||||||
"repos_url": "https://api.github.com/users/showell/repos",
|
|
||||||
"site_admin": false,
|
|
||||||
"starred_url": "https://api.github.com/users/showell/starred{/owner}{/repo}",
|
|
||||||
"subscriptions_url": "https://api.github.com/users/showell/subscriptions",
|
|
||||||
"type": "User",
|
|
||||||
"url": "https://api.github.com/users/showell"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"avatar_url": "https://avatars2.githubusercontent.com/u/142908?v=4",
|
|
||||||
"events_url": "https://api.github.com/users/timabbott/events{/privacy}",
|
|
||||||
"followers_url": "https://api.github.com/users/timabbott/followers",
|
|
||||||
"following_url": "https://api.github.com/users/timabbott/following{/other_user}",
|
|
||||||
"gists_url": "https://api.github.com/users/timabbott/gists{/gist_id}",
|
|
||||||
"gravatar_id": "",
|
|
||||||
"html_url": "https://github.com/timabbott",
|
|
||||||
"id": 142908,
|
|
||||||
"login": "timabbott",
|
|
||||||
"node_id": "MDQ6VXNlcjE0MjkwOA==",
|
|
||||||
"organizations_url": "https://api.github.com/users/timabbott/orgs",
|
|
||||||
"received_events_url": "https://api.github.com/users/timabbott/received_events",
|
|
||||||
"repos_url": "https://api.github.com/users/timabbott/repos",
|
|
||||||
"site_admin": false,
|
|
||||||
"starred_url": "https://api.github.com/users/timabbott/starred{/owner}{/repo}",
|
|
||||||
"subscriptions_url": "https://api.github.com/users/timabbott/subscriptions",
|
|
||||||
"type": "User",
|
|
||||||
"url": "https://api.github.com/users/timabbott"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"requested_teams": [],
|
|
||||||
"review_comment_url": "https://api.github.com/repos/eeshangarg/Scheduler/pulls/comments{/number}",
|
|
||||||
"review_comments": 0,
|
|
||||||
"review_comments_url": "https://api.github.com/repos/eeshangarg/Scheduler/pulls/1/comments",
|
|
||||||
"state": "open",
|
|
||||||
"statuses_url": "https://api.github.com/repos/eeshangarg/Scheduler/statuses/2c51f5499275c21c140cb7dbc8d0f60545187579",
|
|
||||||
"title": "This is just a test commit",
|
|
||||||
"updated_at": "2018-07-01T17:07:44Z",
|
|
||||||
"url": "https://api.github.com/repos/eeshangarg/Scheduler/pulls/1",
|
|
||||||
"user": {
|
|
||||||
"avatar_url": "https://avatars0.githubusercontent.com/u/7251823?v=4",
|
|
||||||
"events_url": "https://api.github.com/users/eeshangarg/events{/privacy}",
|
|
||||||
"followers_url": "https://api.github.com/users/eeshangarg/followers",
|
|
||||||
"following_url": "https://api.github.com/users/eeshangarg/following{/other_user}",
|
|
||||||
"gists_url": "https://api.github.com/users/eeshangarg/gists{/gist_id}",
|
|
||||||
"gravatar_id": "",
|
|
||||||
"html_url": "https://github.com/eeshangarg",
|
|
||||||
"id": 7251823,
|
|
||||||
"login": "eeshangarg",
|
|
||||||
"node_id": "MDQ6VXNlcjcyNTE4MjM=",
|
|
||||||
"organizations_url": "https://api.github.com/users/eeshangarg/orgs",
|
|
||||||
"received_events_url": "https://api.github.com/users/eeshangarg/received_events",
|
|
||||||
"repos_url": "https://api.github.com/users/eeshangarg/repos",
|
|
||||||
"site_admin": false,
|
|
||||||
"starred_url": "https://api.github.com/users/eeshangarg/starred{/owner}{/repo}",
|
|
||||||
"subscriptions_url": "https://api.github.com/users/eeshangarg/subscriptions",
|
|
||||||
"type": "User",
|
|
||||||
"url": "https://api.github.com/users/eeshangarg"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"repository": {
|
|
||||||
"archive_url": "https://api.github.com/repos/eeshangarg/Scheduler/{archive_format}{/ref}",
|
|
||||||
"archived": false,
|
|
||||||
"assignees_url": "https://api.github.com/repos/eeshangarg/Scheduler/assignees{/user}",
|
|
||||||
"blobs_url": "https://api.github.com/repos/eeshangarg/Scheduler/git/blobs{/sha}",
|
|
||||||
"branches_url": "https://api.github.com/repos/eeshangarg/Scheduler/branches{/branch}",
|
|
||||||
"clone_url": "https://github.com/eeshangarg/Scheduler.git",
|
|
||||||
"collaborators_url": "https://api.github.com/repos/eeshangarg/Scheduler/collaborators{/collaborator}",
|
|
||||||
"comments_url": "https://api.github.com/repos/eeshangarg/Scheduler/comments{/number}",
|
|
||||||
"commits_url": "https://api.github.com/repos/eeshangarg/Scheduler/commits{/sha}",
|
|
||||||
"compare_url": "https://api.github.com/repos/eeshangarg/Scheduler/compare/{base}...{head}",
|
|
||||||
"contents_url": "https://api.github.com/repos/eeshangarg/Scheduler/contents/{+path}",
|
|
||||||
"contributors_url": "https://api.github.com/repos/eeshangarg/Scheduler/contributors",
|
|
||||||
"created_at": "2017-11-24T03:43:58Z",
|
|
||||||
"default_branch": "master",
|
|
||||||
"deployments_url": "https://api.github.com/repos/eeshangarg/Scheduler/deployments",
|
|
||||||
"description": "CS3716 Project",
|
|
||||||
"downloads_url": "https://api.github.com/repos/eeshangarg/Scheduler/downloads",
|
|
||||||
"events_url": "https://api.github.com/repos/eeshangarg/Scheduler/events",
|
|
||||||
"fork": false,
|
|
||||||
"forks": 0,
|
|
||||||
"forks_count": 0,
|
|
||||||
"forks_url": "https://api.github.com/repos/eeshangarg/Scheduler/forks",
|
|
||||||
"full_name": "eeshangarg/Scheduler",
|
|
||||||
"git_commits_url": "https://api.github.com/repos/eeshangarg/Scheduler/git/commits{/sha}",
|
|
||||||
"git_refs_url": "https://api.github.com/repos/eeshangarg/Scheduler/git/refs{/sha}",
|
|
||||||
"git_tags_url": "https://api.github.com/repos/eeshangarg/Scheduler/git/tags{/sha}",
|
|
||||||
"git_url": "git://github.com/eeshangarg/Scheduler.git",
|
|
||||||
"has_downloads": true,
|
|
||||||
"has_issues": true,
|
|
||||||
"has_pages": false,
|
|
||||||
"has_projects": true,
|
|
||||||
"has_wiki": true,
|
|
||||||
"homepage": null,
|
|
||||||
"hooks_url": "https://api.github.com/repos/eeshangarg/Scheduler/hooks",
|
|
||||||
"html_url": "https://github.com/eeshangarg/Scheduler",
|
|
||||||
"id": 111873102,
|
|
||||||
"issue_comment_url": "https://api.github.com/repos/eeshangarg/Scheduler/issues/comments{/number}",
|
|
||||||
"issue_events_url": "https://api.github.com/repos/eeshangarg/Scheduler/issues/events{/number}",
|
|
||||||
"issues_url": "https://api.github.com/repos/eeshangarg/Scheduler/issues{/number}",
|
|
||||||
"keys_url": "https://api.github.com/repos/eeshangarg/Scheduler/keys{/key_id}",
|
|
||||||
"labels_url": "https://api.github.com/repos/eeshangarg/Scheduler/labels{/name}",
|
|
||||||
"language": "Java",
|
|
||||||
"languages_url": "https://api.github.com/repos/eeshangarg/Scheduler/languages",
|
|
||||||
"license": null,
|
|
||||||
"merges_url": "https://api.github.com/repos/eeshangarg/Scheduler/merges",
|
|
||||||
"milestones_url": "https://api.github.com/repos/eeshangarg/Scheduler/milestones{/number}",
|
|
||||||
"mirror_url": null,
|
|
||||||
"name": "Scheduler",
|
|
||||||
"node_id": "MDEwOlJlcG9zaXRvcnkxMTE4NzMxMDI=",
|
|
||||||
"notifications_url": "https://api.github.com/repos/eeshangarg/Scheduler/notifications{?since,all,participating}",
|
|
||||||
"open_issues": 1,
|
|
||||||
"open_issues_count": 1,
|
|
||||||
"owner": {
|
|
||||||
"avatar_url": "https://avatars0.githubusercontent.com/u/7251823?v=4",
|
|
||||||
"events_url": "https://api.github.com/users/eeshangarg/events{/privacy}",
|
|
||||||
"followers_url": "https://api.github.com/users/eeshangarg/followers",
|
|
||||||
"following_url": "https://api.github.com/users/eeshangarg/following{/other_user}",
|
|
||||||
"gists_url": "https://api.github.com/users/eeshangarg/gists{/gist_id}",
|
|
||||||
"gravatar_id": "",
|
|
||||||
"html_url": "https://github.com/eeshangarg",
|
|
||||||
"id": 7251823,
|
|
||||||
"login": "eeshangarg",
|
|
||||||
"node_id": "MDQ6VXNlcjcyNTE4MjM=",
|
|
||||||
"organizations_url": "https://api.github.com/users/eeshangarg/orgs",
|
|
||||||
"received_events_url": "https://api.github.com/users/eeshangarg/received_events",
|
|
||||||
"repos_url": "https://api.github.com/users/eeshangarg/repos",
|
|
||||||
"site_admin": false,
|
|
||||||
"starred_url": "https://api.github.com/users/eeshangarg/starred{/owner}{/repo}",
|
|
||||||
"subscriptions_url": "https://api.github.com/users/eeshangarg/subscriptions",
|
|
||||||
"type": "User",
|
|
||||||
"url": "https://api.github.com/users/eeshangarg"
|
|
||||||
},
|
|
||||||
"private": false,
|
|
||||||
"pulls_url": "https://api.github.com/repos/eeshangarg/Scheduler/pulls{/number}",
|
|
||||||
"pushed_at": "2018-07-01T15:05:26Z",
|
|
||||||
"releases_url": "https://api.github.com/repos/eeshangarg/Scheduler/releases{/id}",
|
|
||||||
"size": 8,
|
|
||||||
"ssh_url": "git@github.com:eeshangarg/Scheduler.git",
|
|
||||||
"stargazers_count": 0,
|
|
||||||
"stargazers_url": "https://api.github.com/repos/eeshangarg/Scheduler/stargazers",
|
|
||||||
"statuses_url": "https://api.github.com/repos/eeshangarg/Scheduler/statuses/{sha}",
|
|
||||||
"subscribers_url": "https://api.github.com/repos/eeshangarg/Scheduler/subscribers",
|
|
||||||
"subscription_url": "https://api.github.com/repos/eeshangarg/Scheduler/subscription",
|
|
||||||
"svn_url": "https://github.com/eeshangarg/Scheduler",
|
|
||||||
"tags_url": "https://api.github.com/repos/eeshangarg/Scheduler/tags",
|
|
||||||
"teams_url": "https://api.github.com/repos/eeshangarg/Scheduler/teams",
|
|
||||||
"trees_url": "https://api.github.com/repos/eeshangarg/Scheduler/git/trees{/sha}",
|
|
||||||
"updated_at": "2017-11-24T03:45:29Z",
|
|
||||||
"url": "https://api.github.com/repos/eeshangarg/Scheduler",
|
|
||||||
"watchers": 0,
|
|
||||||
"watchers_count": 0
|
|
||||||
},
|
|
||||||
"requested_reviewer": {
|
|
||||||
"avatar_url": "https://avatars2.githubusercontent.com/u/142908?v=4",
|
|
||||||
"events_url": "https://api.github.com/users/showell/events{/privacy}",
|
|
||||||
"followers_url": "https://api.github.com/users/showell/followers",
|
|
||||||
"following_url": "https://api.github.com/users/showell/following{/other_user}",
|
|
||||||
"gists_url": "https://api.github.com/users/showell/gists{/gist_id}",
|
|
||||||
"gravatar_id": "",
|
|
||||||
"html_url": "https://github.com/showell",
|
|
||||||
"id": 142908,
|
|
||||||
"login": "showell",
|
|
||||||
"node_id": "MDQ6VXNlcjE0MjkwOA==",
|
|
||||||
"organizations_url": "https://api.github.com/users/showell/orgs",
|
|
||||||
"received_events_url": "https://api.github.com/users/showell/received_events",
|
|
||||||
"repos_url": "https://api.github.com/users/showell/repos",
|
|
||||||
"site_admin": false,
|
|
||||||
"starred_url": "https://api.github.com/users/showell/starred{/owner}{/repo}",
|
|
||||||
"subscriptions_url": "https://api.github.com/users/showell/subscriptions",
|
|
||||||
"type": "User",
|
|
||||||
"url": "https://api.github.com/users/showell"
|
|
||||||
},
|
|
||||||
"sender": {
|
|
||||||
"avatar_url": "https://avatars0.githubusercontent.com/u/7251823?v=4",
|
|
||||||
"events_url": "https://api.github.com/users/eeshangarg/events{/privacy}",
|
|
||||||
"followers_url": "https://api.github.com/users/eeshangarg/followers",
|
|
||||||
"following_url": "https://api.github.com/users/eeshangarg/following{/other_user}",
|
|
||||||
"gists_url": "https://api.github.com/users/eeshangarg/gists{/gist_id}",
|
|
||||||
"gravatar_id": "",
|
|
||||||
"html_url": "https://github.com/eeshangarg",
|
|
||||||
"id": 7251823,
|
|
||||||
"login": "eeshangarg",
|
|
||||||
"node_id": "MDQ6VXNlcjcyNTE4MjM=",
|
|
||||||
"organizations_url": "https://api.github.com/users/eeshangarg/orgs",
|
|
||||||
"received_events_url": "https://api.github.com/users/eeshangarg/received_events",
|
|
||||||
"repos_url": "https://api.github.com/users/eeshangarg/repos",
|
|
||||||
"site_admin": false,
|
|
||||||
"starred_url": "https://api.github.com/users/eeshangarg/starred{/owner}{/repo}",
|
|
||||||
"subscriptions_url": "https://api.github.com/users/eeshangarg/subscriptions",
|
|
||||||
"type": "User",
|
|
||||||
"url": "https://api.github.com/users/eeshangarg"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,463 +0,0 @@
|
|||||||
{
|
|
||||||
"action": "review_requested",
|
|
||||||
"number": 6,
|
|
||||||
"pull_request": {
|
|
||||||
"_links": {
|
|
||||||
"comments": {
|
|
||||||
"href": "https://api.github.com/repos/eeshangarg/Scheduler/issues/6/comments"
|
|
||||||
},
|
|
||||||
"commits": {
|
|
||||||
"href": "https://api.github.com/repos/eeshangarg/Scheduler/pulls/6/commits"
|
|
||||||
},
|
|
||||||
"html": {
|
|
||||||
"href": "https://github.com/eeshangarg/Scheduler/pull/6"
|
|
||||||
},
|
|
||||||
"issue": {
|
|
||||||
"href": "https://api.github.com/repos/eeshangarg/Scheduler/issues/6"
|
|
||||||
},
|
|
||||||
"review_comment": {
|
|
||||||
"href": "https://api.github.com/repos/eeshangarg/Scheduler/pulls/comments{/number}"
|
|
||||||
},
|
|
||||||
"review_comments": {
|
|
||||||
"href": "https://api.github.com/repos/eeshangarg/Scheduler/pulls/6/comments"
|
|
||||||
},
|
|
||||||
"self": {
|
|
||||||
"href": "https://api.github.com/repos/eeshangarg/Scheduler/pulls/6"
|
|
||||||
},
|
|
||||||
"statuses": {
|
|
||||||
"href": "https://api.github.com/repos/eeshangarg/Scheduler/statuses/58b742b099302648691924c59be0cc884de42fd4"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"additions": 2,
|
|
||||||
"assignee": null,
|
|
||||||
"assignees": [],
|
|
||||||
"author_association": "OWNER",
|
|
||||||
"base": {
|
|
||||||
"label": "eeshangarg:master",
|
|
||||||
"ref": "master",
|
|
||||||
"repo": {
|
|
||||||
"archive_url": "https://api.github.com/repos/eeshangarg/Scheduler/{archive_format}{/ref}",
|
|
||||||
"archived": false,
|
|
||||||
"assignees_url": "https://api.github.com/repos/eeshangarg/Scheduler/assignees{/user}",
|
|
||||||
"blobs_url": "https://api.github.com/repos/eeshangarg/Scheduler/git/blobs{/sha}",
|
|
||||||
"branches_url": "https://api.github.com/repos/eeshangarg/Scheduler/branches{/branch}",
|
|
||||||
"clone_url": "https://github.com/eeshangarg/Scheduler.git",
|
|
||||||
"collaborators_url": "https://api.github.com/repos/eeshangarg/Scheduler/collaborators{/collaborator}",
|
|
||||||
"comments_url": "https://api.github.com/repos/eeshangarg/Scheduler/comments{/number}",
|
|
||||||
"commits_url": "https://api.github.com/repos/eeshangarg/Scheduler/commits{/sha}",
|
|
||||||
"compare_url": "https://api.github.com/repos/eeshangarg/Scheduler/compare/{base}...{head}",
|
|
||||||
"contents_url": "https://api.github.com/repos/eeshangarg/Scheduler/contents/{+path}",
|
|
||||||
"contributors_url": "https://api.github.com/repos/eeshangarg/Scheduler/contributors",
|
|
||||||
"created_at": "2017-11-24T03:43:58Z",
|
|
||||||
"default_branch": "master",
|
|
||||||
"deployments_url": "https://api.github.com/repos/eeshangarg/Scheduler/deployments",
|
|
||||||
"description": "CS3716 Project",
|
|
||||||
"downloads_url": "https://api.github.com/repos/eeshangarg/Scheduler/downloads",
|
|
||||||
"events_url": "https://api.github.com/repos/eeshangarg/Scheduler/events",
|
|
||||||
"fork": false,
|
|
||||||
"forks": 0,
|
|
||||||
"forks_count": 0,
|
|
||||||
"forks_url": "https://api.github.com/repos/eeshangarg/Scheduler/forks",
|
|
||||||
"full_name": "eeshangarg/Scheduler",
|
|
||||||
"git_commits_url": "https://api.github.com/repos/eeshangarg/Scheduler/git/commits{/sha}",
|
|
||||||
"git_refs_url": "https://api.github.com/repos/eeshangarg/Scheduler/git/refs{/sha}",
|
|
||||||
"git_tags_url": "https://api.github.com/repos/eeshangarg/Scheduler/git/tags{/sha}",
|
|
||||||
"git_url": "git://github.com/eeshangarg/Scheduler.git",
|
|
||||||
"has_downloads": true,
|
|
||||||
"has_issues": true,
|
|
||||||
"has_pages": false,
|
|
||||||
"has_projects": true,
|
|
||||||
"has_wiki": true,
|
|
||||||
"homepage": null,
|
|
||||||
"hooks_url": "https://api.github.com/repos/eeshangarg/Scheduler/hooks",
|
|
||||||
"html_url": "https://github.com/eeshangarg/Scheduler",
|
|
||||||
"id": 111873102,
|
|
||||||
"issue_comment_url": "https://api.github.com/repos/eeshangarg/Scheduler/issues/comments{/number}",
|
|
||||||
"issue_events_url": "https://api.github.com/repos/eeshangarg/Scheduler/issues/events{/number}",
|
|
||||||
"issues_url": "https://api.github.com/repos/eeshangarg/Scheduler/issues{/number}",
|
|
||||||
"keys_url": "https://api.github.com/repos/eeshangarg/Scheduler/keys{/key_id}",
|
|
||||||
"labels_url": "https://api.github.com/repos/eeshangarg/Scheduler/labels{/name}",
|
|
||||||
"language": "Java",
|
|
||||||
"languages_url": "https://api.github.com/repos/eeshangarg/Scheduler/languages",
|
|
||||||
"license": null,
|
|
||||||
"merges_url": "https://api.github.com/repos/eeshangarg/Scheduler/merges",
|
|
||||||
"milestones_url": "https://api.github.com/repos/eeshangarg/Scheduler/milestones{/number}",
|
|
||||||
"mirror_url": null,
|
|
||||||
"name": "Scheduler",
|
|
||||||
"node_id": "MDEwOlJlcG9zaXRvcnkxMTE4NzMxMDI=",
|
|
||||||
"notifications_url": "https://api.github.com/repos/eeshangarg/Scheduler/notifications{?since,all,participating}",
|
|
||||||
"open_issues": 5,
|
|
||||||
"open_issues_count": 5,
|
|
||||||
"owner": {
|
|
||||||
"avatar_url": "https://avatars0.githubusercontent.com/u/7251823?v=4",
|
|
||||||
"events_url": "https://api.github.com/users/eeshangarg/events{/privacy}",
|
|
||||||
"followers_url": "https://api.github.com/users/eeshangarg/followers",
|
|
||||||
"following_url": "https://api.github.com/users/eeshangarg/following{/other_user}",
|
|
||||||
"gists_url": "https://api.github.com/users/eeshangarg/gists{/gist_id}",
|
|
||||||
"gravatar_id": "",
|
|
||||||
"html_url": "https://github.com/eeshangarg",
|
|
||||||
"id": 7251823,
|
|
||||||
"login": "eeshangarg",
|
|
||||||
"node_id": "MDQ6VXNlcjcyNTE4MjM=",
|
|
||||||
"organizations_url": "https://api.github.com/users/eeshangarg/orgs",
|
|
||||||
"received_events_url": "https://api.github.com/users/eeshangarg/received_events",
|
|
||||||
"repos_url": "https://api.github.com/users/eeshangarg/repos",
|
|
||||||
"site_admin": false,
|
|
||||||
"starred_url": "https://api.github.com/users/eeshangarg/starred{/owner}{/repo}",
|
|
||||||
"subscriptions_url": "https://api.github.com/users/eeshangarg/subscriptions",
|
|
||||||
"type": "User",
|
|
||||||
"url": "https://api.github.com/users/eeshangarg"
|
|
||||||
},
|
|
||||||
"private": false,
|
|
||||||
"pulls_url": "https://api.github.com/repos/eeshangarg/Scheduler/pulls{/number}",
|
|
||||||
"pushed_at": "2018-10-23T16:48:00Z",
|
|
||||||
"releases_url": "https://api.github.com/repos/eeshangarg/Scheduler/releases{/id}",
|
|
||||||
"size": 9,
|
|
||||||
"ssh_url": "git@github.com:eeshangarg/Scheduler.git",
|
|
||||||
"stargazers_count": 0,
|
|
||||||
"stargazers_url": "https://api.github.com/repos/eeshangarg/Scheduler/stargazers",
|
|
||||||
"statuses_url": "https://api.github.com/repos/eeshangarg/Scheduler/statuses/{sha}",
|
|
||||||
"subscribers_url": "https://api.github.com/repos/eeshangarg/Scheduler/subscribers",
|
|
||||||
"subscription_url": "https://api.github.com/repos/eeshangarg/Scheduler/subscription",
|
|
||||||
"svn_url": "https://github.com/eeshangarg/Scheduler",
|
|
||||||
"tags_url": "https://api.github.com/repos/eeshangarg/Scheduler/tags",
|
|
||||||
"teams_url": "https://api.github.com/repos/eeshangarg/Scheduler/teams",
|
|
||||||
"trees_url": "https://api.github.com/repos/eeshangarg/Scheduler/git/trees{/sha}",
|
|
||||||
"updated_at": "2017-11-24T03:45:29Z",
|
|
||||||
"url": "https://api.github.com/repos/eeshangarg/Scheduler",
|
|
||||||
"watchers": 0,
|
|
||||||
"watchers_count": 0
|
|
||||||
},
|
|
||||||
"sha": "4f8a093f7046fcc58b0826d21586d1b537b0112b",
|
|
||||||
"user": {
|
|
||||||
"avatar_url": "https://avatars0.githubusercontent.com/u/7251823?v=4",
|
|
||||||
"events_url": "https://api.github.com/users/eeshangarg/events{/privacy}",
|
|
||||||
"followers_url": "https://api.github.com/users/eeshangarg/followers",
|
|
||||||
"following_url": "https://api.github.com/users/eeshangarg/following{/other_user}",
|
|
||||||
"gists_url": "https://api.github.com/users/eeshangarg/gists{/gist_id}",
|
|
||||||
"gravatar_id": "",
|
|
||||||
"html_url": "https://github.com/eeshangarg",
|
|
||||||
"id": 7251823,
|
|
||||||
"login": "eeshangarg",
|
|
||||||
"node_id": "MDQ6VXNlcjcyNTE4MjM=",
|
|
||||||
"organizations_url": "https://api.github.com/users/eeshangarg/orgs",
|
|
||||||
"received_events_url": "https://api.github.com/users/eeshangarg/received_events",
|
|
||||||
"repos_url": "https://api.github.com/users/eeshangarg/repos",
|
|
||||||
"site_admin": false,
|
|
||||||
"starred_url": "https://api.github.com/users/eeshangarg/starred{/owner}{/repo}",
|
|
||||||
"subscriptions_url": "https://api.github.com/users/eeshangarg/subscriptions",
|
|
||||||
"type": "User",
|
|
||||||
"url": "https://api.github.com/users/eeshangarg"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"body": "",
|
|
||||||
"changed_files": 1,
|
|
||||||
"closed_at": null,
|
|
||||||
"comments": 0,
|
|
||||||
"comments_url": "https://api.github.com/repos/eeshangarg/Scheduler/issues/6/comments",
|
|
||||||
"commits": 1,
|
|
||||||
"commits_url": "https://api.github.com/repos/eeshangarg/Scheduler/pulls/6/commits",
|
|
||||||
"created_at": "2018-10-23T16:47:59Z",
|
|
||||||
"deletions": 0,
|
|
||||||
"diff_url": "https://github.com/eeshangarg/Scheduler/pull/6.diff",
|
|
||||||
"head": {
|
|
||||||
"label": "eeshangarg:random-branch",
|
|
||||||
"ref": "random-branch",
|
|
||||||
"repo": {
|
|
||||||
"archive_url": "https://api.github.com/repos/eeshangarg/Scheduler/{archive_format}{/ref}",
|
|
||||||
"archived": false,
|
|
||||||
"assignees_url": "https://api.github.com/repos/eeshangarg/Scheduler/assignees{/user}",
|
|
||||||
"blobs_url": "https://api.github.com/repos/eeshangarg/Scheduler/git/blobs{/sha}",
|
|
||||||
"branches_url": "https://api.github.com/repos/eeshangarg/Scheduler/branches{/branch}",
|
|
||||||
"clone_url": "https://github.com/eeshangarg/Scheduler.git",
|
|
||||||
"collaborators_url": "https://api.github.com/repos/eeshangarg/Scheduler/collaborators{/collaborator}",
|
|
||||||
"comments_url": "https://api.github.com/repos/eeshangarg/Scheduler/comments{/number}",
|
|
||||||
"commits_url": "https://api.github.com/repos/eeshangarg/Scheduler/commits{/sha}",
|
|
||||||
"compare_url": "https://api.github.com/repos/eeshangarg/Scheduler/compare/{base}...{head}",
|
|
||||||
"contents_url": "https://api.github.com/repos/eeshangarg/Scheduler/contents/{+path}",
|
|
||||||
"contributors_url": "https://api.github.com/repos/eeshangarg/Scheduler/contributors",
|
|
||||||
"created_at": "2017-11-24T03:43:58Z",
|
|
||||||
"default_branch": "master",
|
|
||||||
"deployments_url": "https://api.github.com/repos/eeshangarg/Scheduler/deployments",
|
|
||||||
"description": "CS3716 Project",
|
|
||||||
"downloads_url": "https://api.github.com/repos/eeshangarg/Scheduler/downloads",
|
|
||||||
"events_url": "https://api.github.com/repos/eeshangarg/Scheduler/events",
|
|
||||||
"fork": false,
|
|
||||||
"forks": 0,
|
|
||||||
"forks_count": 0,
|
|
||||||
"forks_url": "https://api.github.com/repos/eeshangarg/Scheduler/forks",
|
|
||||||
"full_name": "eeshangarg/Scheduler",
|
|
||||||
"git_commits_url": "https://api.github.com/repos/eeshangarg/Scheduler/git/commits{/sha}",
|
|
||||||
"git_refs_url": "https://api.github.com/repos/eeshangarg/Scheduler/git/refs{/sha}",
|
|
||||||
"git_tags_url": "https://api.github.com/repos/eeshangarg/Scheduler/git/tags{/sha}",
|
|
||||||
"git_url": "git://github.com/eeshangarg/Scheduler.git",
|
|
||||||
"has_downloads": true,
|
|
||||||
"has_issues": true,
|
|
||||||
"has_pages": false,
|
|
||||||
"has_projects": true,
|
|
||||||
"has_wiki": true,
|
|
||||||
"homepage": null,
|
|
||||||
"hooks_url": "https://api.github.com/repos/eeshangarg/Scheduler/hooks",
|
|
||||||
"html_url": "https://github.com/eeshangarg/Scheduler",
|
|
||||||
"id": 111873102,
|
|
||||||
"issue_comment_url": "https://api.github.com/repos/eeshangarg/Scheduler/issues/comments{/number}",
|
|
||||||
"issue_events_url": "https://api.github.com/repos/eeshangarg/Scheduler/issues/events{/number}",
|
|
||||||
"issues_url": "https://api.github.com/repos/eeshangarg/Scheduler/issues{/number}",
|
|
||||||
"keys_url": "https://api.github.com/repos/eeshangarg/Scheduler/keys{/key_id}",
|
|
||||||
"labels_url": "https://api.github.com/repos/eeshangarg/Scheduler/labels{/name}",
|
|
||||||
"language": "Java",
|
|
||||||
"languages_url": "https://api.github.com/repos/eeshangarg/Scheduler/languages",
|
|
||||||
"license": null,
|
|
||||||
"merges_url": "https://api.github.com/repos/eeshangarg/Scheduler/merges",
|
|
||||||
"milestones_url": "https://api.github.com/repos/eeshangarg/Scheduler/milestones{/number}",
|
|
||||||
"mirror_url": null,
|
|
||||||
"name": "Scheduler",
|
|
||||||
"node_id": "MDEwOlJlcG9zaXRvcnkxMTE4NzMxMDI=",
|
|
||||||
"notifications_url": "https://api.github.com/repos/eeshangarg/Scheduler/notifications{?since,all,participating}",
|
|
||||||
"open_issues": 5,
|
|
||||||
"open_issues_count": 5,
|
|
||||||
"owner": {
|
|
||||||
"avatar_url": "https://avatars0.githubusercontent.com/u/7251823?v=4",
|
|
||||||
"events_url": "https://api.github.com/users/eeshangarg/events{/privacy}",
|
|
||||||
"followers_url": "https://api.github.com/users/eeshangarg/followers",
|
|
||||||
"following_url": "https://api.github.com/users/eeshangarg/following{/other_user}",
|
|
||||||
"gists_url": "https://api.github.com/users/eeshangarg/gists{/gist_id}",
|
|
||||||
"gravatar_id": "",
|
|
||||||
"html_url": "https://github.com/eeshangarg",
|
|
||||||
"id": 7251823,
|
|
||||||
"login": "eeshangarg",
|
|
||||||
"node_id": "MDQ6VXNlcjcyNTE4MjM=",
|
|
||||||
"organizations_url": "https://api.github.com/users/eeshangarg/orgs",
|
|
||||||
"received_events_url": "https://api.github.com/users/eeshangarg/received_events",
|
|
||||||
"repos_url": "https://api.github.com/users/eeshangarg/repos",
|
|
||||||
"site_admin": false,
|
|
||||||
"starred_url": "https://api.github.com/users/eeshangarg/starred{/owner}{/repo}",
|
|
||||||
"subscriptions_url": "https://api.github.com/users/eeshangarg/subscriptions",
|
|
||||||
"type": "User",
|
|
||||||
"url": "https://api.github.com/users/eeshangarg"
|
|
||||||
},
|
|
||||||
"private": false,
|
|
||||||
"pulls_url": "https://api.github.com/repos/eeshangarg/Scheduler/pulls{/number}",
|
|
||||||
"pushed_at": "2018-10-23T16:48:00Z",
|
|
||||||
"releases_url": "https://api.github.com/repos/eeshangarg/Scheduler/releases{/id}",
|
|
||||||
"size": 9,
|
|
||||||
"ssh_url": "git@github.com:eeshangarg/Scheduler.git",
|
|
||||||
"stargazers_count": 0,
|
|
||||||
"stargazers_url": "https://api.github.com/repos/eeshangarg/Scheduler/stargazers",
|
|
||||||
"statuses_url": "https://api.github.com/repos/eeshangarg/Scheduler/statuses/{sha}",
|
|
||||||
"subscribers_url": "https://api.github.com/repos/eeshangarg/Scheduler/subscribers",
|
|
||||||
"subscription_url": "https://api.github.com/repos/eeshangarg/Scheduler/subscription",
|
|
||||||
"svn_url": "https://github.com/eeshangarg/Scheduler",
|
|
||||||
"tags_url": "https://api.github.com/repos/eeshangarg/Scheduler/tags",
|
|
||||||
"teams_url": "https://api.github.com/repos/eeshangarg/Scheduler/teams",
|
|
||||||
"trees_url": "https://api.github.com/repos/eeshangarg/Scheduler/git/trees{/sha}",
|
|
||||||
"updated_at": "2017-11-24T03:45:29Z",
|
|
||||||
"url": "https://api.github.com/repos/eeshangarg/Scheduler",
|
|
||||||
"watchers": 0,
|
|
||||||
"watchers_count": 0
|
|
||||||
},
|
|
||||||
"sha": "58b742b099302648691924c59be0cc884de42fd4",
|
|
||||||
"user": {
|
|
||||||
"avatar_url": "https://avatars0.githubusercontent.com/u/7251823?v=4",
|
|
||||||
"events_url": "https://api.github.com/users/eeshangarg/events{/privacy}",
|
|
||||||
"followers_url": "https://api.github.com/users/eeshangarg/followers",
|
|
||||||
"following_url": "https://api.github.com/users/eeshangarg/following{/other_user}",
|
|
||||||
"gists_url": "https://api.github.com/users/eeshangarg/gists{/gist_id}",
|
|
||||||
"gravatar_id": "",
|
|
||||||
"html_url": "https://github.com/eeshangarg",
|
|
||||||
"id": 7251823,
|
|
||||||
"login": "eeshangarg",
|
|
||||||
"node_id": "MDQ6VXNlcjcyNTE4MjM=",
|
|
||||||
"organizations_url": "https://api.github.com/users/eeshangarg/orgs",
|
|
||||||
"received_events_url": "https://api.github.com/users/eeshangarg/received_events",
|
|
||||||
"repos_url": "https://api.github.com/users/eeshangarg/repos",
|
|
||||||
"site_admin": false,
|
|
||||||
"starred_url": "https://api.github.com/users/eeshangarg/starred{/owner}{/repo}",
|
|
||||||
"subscriptions_url": "https://api.github.com/users/eeshangarg/subscriptions",
|
|
||||||
"type": "User",
|
|
||||||
"url": "https://api.github.com/users/eeshangarg"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"html_url": "https://github.com/eeshangarg/Scheduler/pull/6",
|
|
||||||
"id": 225112037,
|
|
||||||
"issue_url": "https://api.github.com/repos/eeshangarg/Scheduler/issues/6",
|
|
||||||
"labels": [],
|
|
||||||
"locked": false,
|
|
||||||
"maintainer_can_modify": false,
|
|
||||||
"merge_commit_sha": "3b3d99cc7f1dd56eb930e847f6c76008a7de6c8b",
|
|
||||||
"mergeable": true,
|
|
||||||
"mergeable_state": "clean",
|
|
||||||
"merged": false,
|
|
||||||
"merged_at": null,
|
|
||||||
"merged_by": null,
|
|
||||||
"milestone": null,
|
|
||||||
"node_id": "MDExOlB1bGxSZXF1ZXN0MjI1MTEyMDM3",
|
|
||||||
"number": 6,
|
|
||||||
"patch_url": "https://github.com/eeshangarg/Scheduler/pull/6.patch",
|
|
||||||
"rebaseable": true,
|
|
||||||
"requested_reviewers": [
|
|
||||||
],
|
|
||||||
"requested_teams": [],
|
|
||||||
"review_comment_url": "https://api.github.com/repos/eeshangarg/Scheduler/pulls/comments{/number}",
|
|
||||||
"review_comments": 0,
|
|
||||||
"review_comments_url": "https://api.github.com/repos/eeshangarg/Scheduler/pulls/6/comments",
|
|
||||||
"state": "open",
|
|
||||||
"statuses_url": "https://api.github.com/repos/eeshangarg/Scheduler/statuses/58b742b099302648691924c59be0cc884de42fd4",
|
|
||||||
"title": "Mention how awesome this project is in README",
|
|
||||||
"updated_at": "2018-10-23T17:29:43Z",
|
|
||||||
"url": "https://api.github.com/repos/eeshangarg/Scheduler/pulls/6",
|
|
||||||
"user": {
|
|
||||||
"avatar_url": "https://avatars0.githubusercontent.com/u/7251823?v=4",
|
|
||||||
"events_url": "https://api.github.com/users/eeshangarg/events{/privacy}",
|
|
||||||
"followers_url": "https://api.github.com/users/eeshangarg/followers",
|
|
||||||
"following_url": "https://api.github.com/users/eeshangarg/following{/other_user}",
|
|
||||||
"gists_url": "https://api.github.com/users/eeshangarg/gists{/gist_id}",
|
|
||||||
"gravatar_id": "",
|
|
||||||
"html_url": "https://github.com/eeshangarg",
|
|
||||||
"id": 7251823,
|
|
||||||
"login": "eeshangarg",
|
|
||||||
"node_id": "MDQ6VXNlcjcyNTE4MjM=",
|
|
||||||
"organizations_url": "https://api.github.com/users/eeshangarg/orgs",
|
|
||||||
"received_events_url": "https://api.github.com/users/eeshangarg/received_events",
|
|
||||||
"repos_url": "https://api.github.com/users/eeshangarg/repos",
|
|
||||||
"site_admin": false,
|
|
||||||
"starred_url": "https://api.github.com/users/eeshangarg/starred{/owner}{/repo}",
|
|
||||||
"subscriptions_url": "https://api.github.com/users/eeshangarg/subscriptions",
|
|
||||||
"type": "User",
|
|
||||||
"url": "https://api.github.com/users/eeshangarg"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"repository": {
|
|
||||||
"archive_url": "https://api.github.com/repos/eeshangarg/Scheduler/{archive_format}{/ref}",
|
|
||||||
"archived": false,
|
|
||||||
"assignees_url": "https://api.github.com/repos/eeshangarg/Scheduler/assignees{/user}",
|
|
||||||
"blobs_url": "https://api.github.com/repos/eeshangarg/Scheduler/git/blobs{/sha}",
|
|
||||||
"branches_url": "https://api.github.com/repos/eeshangarg/Scheduler/branches{/branch}",
|
|
||||||
"clone_url": "https://github.com/eeshangarg/Scheduler.git",
|
|
||||||
"collaborators_url": "https://api.github.com/repos/eeshangarg/Scheduler/collaborators{/collaborator}",
|
|
||||||
"comments_url": "https://api.github.com/repos/eeshangarg/Scheduler/comments{/number}",
|
|
||||||
"commits_url": "https://api.github.com/repos/eeshangarg/Scheduler/commits{/sha}",
|
|
||||||
"compare_url": "https://api.github.com/repos/eeshangarg/Scheduler/compare/{base}...{head}",
|
|
||||||
"contents_url": "https://api.github.com/repos/eeshangarg/Scheduler/contents/{+path}",
|
|
||||||
"contributors_url": "https://api.github.com/repos/eeshangarg/Scheduler/contributors",
|
|
||||||
"created_at": "2017-11-24T03:43:58Z",
|
|
||||||
"default_branch": "master",
|
|
||||||
"deployments_url": "https://api.github.com/repos/eeshangarg/Scheduler/deployments",
|
|
||||||
"description": "CS3716 Project",
|
|
||||||
"downloads_url": "https://api.github.com/repos/eeshangarg/Scheduler/downloads",
|
|
||||||
"events_url": "https://api.github.com/repos/eeshangarg/Scheduler/events",
|
|
||||||
"fork": false,
|
|
||||||
"forks": 0,
|
|
||||||
"forks_count": 0,
|
|
||||||
"forks_url": "https://api.github.com/repos/eeshangarg/Scheduler/forks",
|
|
||||||
"full_name": "eeshangarg/Scheduler",
|
|
||||||
"git_commits_url": "https://api.github.com/repos/eeshangarg/Scheduler/git/commits{/sha}",
|
|
||||||
"git_refs_url": "https://api.github.com/repos/eeshangarg/Scheduler/git/refs{/sha}",
|
|
||||||
"git_tags_url": "https://api.github.com/repos/eeshangarg/Scheduler/git/tags{/sha}",
|
|
||||||
"git_url": "git://github.com/eeshangarg/Scheduler.git",
|
|
||||||
"has_downloads": true,
|
|
||||||
"has_issues": true,
|
|
||||||
"has_pages": false,
|
|
||||||
"has_projects": true,
|
|
||||||
"has_wiki": true,
|
|
||||||
"homepage": null,
|
|
||||||
"hooks_url": "https://api.github.com/repos/eeshangarg/Scheduler/hooks",
|
|
||||||
"html_url": "https://github.com/eeshangarg/Scheduler",
|
|
||||||
"id": 111873102,
|
|
||||||
"issue_comment_url": "https://api.github.com/repos/eeshangarg/Scheduler/issues/comments{/number}",
|
|
||||||
"issue_events_url": "https://api.github.com/repos/eeshangarg/Scheduler/issues/events{/number}",
|
|
||||||
"issues_url": "https://api.github.com/repos/eeshangarg/Scheduler/issues{/number}",
|
|
||||||
"keys_url": "https://api.github.com/repos/eeshangarg/Scheduler/keys{/key_id}",
|
|
||||||
"labels_url": "https://api.github.com/repos/eeshangarg/Scheduler/labels{/name}",
|
|
||||||
"language": "Java",
|
|
||||||
"languages_url": "https://api.github.com/repos/eeshangarg/Scheduler/languages",
|
|
||||||
"license": null,
|
|
||||||
"merges_url": "https://api.github.com/repos/eeshangarg/Scheduler/merges",
|
|
||||||
"milestones_url": "https://api.github.com/repos/eeshangarg/Scheduler/milestones{/number}",
|
|
||||||
"mirror_url": null,
|
|
||||||
"name": "Scheduler",
|
|
||||||
"node_id": "MDEwOlJlcG9zaXRvcnkxMTE4NzMxMDI=",
|
|
||||||
"notifications_url": "https://api.github.com/repos/eeshangarg/Scheduler/notifications{?since,all,participating}",
|
|
||||||
"open_issues": 5,
|
|
||||||
"open_issues_count": 5,
|
|
||||||
"owner": {
|
|
||||||
"avatar_url": "https://avatars0.githubusercontent.com/u/7251823?v=4",
|
|
||||||
"events_url": "https://api.github.com/users/eeshangarg/events{/privacy}",
|
|
||||||
"followers_url": "https://api.github.com/users/eeshangarg/followers",
|
|
||||||
"following_url": "https://api.github.com/users/eeshangarg/following{/other_user}",
|
|
||||||
"gists_url": "https://api.github.com/users/eeshangarg/gists{/gist_id}",
|
|
||||||
"gravatar_id": "",
|
|
||||||
"html_url": "https://github.com/eeshangarg",
|
|
||||||
"id": 7251823,
|
|
||||||
"login": "eeshangarg",
|
|
||||||
"node_id": "MDQ6VXNlcjcyNTE4MjM=",
|
|
||||||
"organizations_url": "https://api.github.com/users/eeshangarg/orgs",
|
|
||||||
"received_events_url": "https://api.github.com/users/eeshangarg/received_events",
|
|
||||||
"repos_url": "https://api.github.com/users/eeshangarg/repos",
|
|
||||||
"site_admin": false,
|
|
||||||
"starred_url": "https://api.github.com/users/eeshangarg/starred{/owner}{/repo}",
|
|
||||||
"subscriptions_url": "https://api.github.com/users/eeshangarg/subscriptions",
|
|
||||||
"type": "User",
|
|
||||||
"url": "https://api.github.com/users/eeshangarg"
|
|
||||||
},
|
|
||||||
"private": false,
|
|
||||||
"pulls_url": "https://api.github.com/repos/eeshangarg/Scheduler/pulls{/number}",
|
|
||||||
"pushed_at": "2018-10-23T16:48:00Z",
|
|
||||||
"releases_url": "https://api.github.com/repos/eeshangarg/Scheduler/releases{/id}",
|
|
||||||
"size": 9,
|
|
||||||
"ssh_url": "git@github.com:eeshangarg/Scheduler.git",
|
|
||||||
"stargazers_count": 0,
|
|
||||||
"stargazers_url": "https://api.github.com/repos/eeshangarg/Scheduler/stargazers",
|
|
||||||
"statuses_url": "https://api.github.com/repos/eeshangarg/Scheduler/statuses/{sha}",
|
|
||||||
"subscribers_url": "https://api.github.com/repos/eeshangarg/Scheduler/subscribers",
|
|
||||||
"subscription_url": "https://api.github.com/repos/eeshangarg/Scheduler/subscription",
|
|
||||||
"svn_url": "https://github.com/eeshangarg/Scheduler",
|
|
||||||
"tags_url": "https://api.github.com/repos/eeshangarg/Scheduler/tags",
|
|
||||||
"teams_url": "https://api.github.com/repos/eeshangarg/Scheduler/teams",
|
|
||||||
"trees_url": "https://api.github.com/repos/eeshangarg/Scheduler/git/trees{/sha}",
|
|
||||||
"updated_at": "2017-11-24T03:45:29Z",
|
|
||||||
"url": "https://api.github.com/repos/eeshangarg/Scheduler",
|
|
||||||
"watchers": 0,
|
|
||||||
"watchers_count": 0
|
|
||||||
},
|
|
||||||
"requested_reviewer": {
|
|
||||||
"avatar_url": "https://avatars2.githubusercontent.com/u/890911?v=4",
|
|
||||||
"events_url": "https://api.github.com/users/rishig/events{/privacy}",
|
|
||||||
"followers_url": "https://api.github.com/users/rishig/followers",
|
|
||||||
"following_url": "https://api.github.com/users/rishig/following{/other_user}",
|
|
||||||
"gists_url": "https://api.github.com/users/rishig/gists{/gist_id}",
|
|
||||||
"gravatar_id": "",
|
|
||||||
"html_url": "https://github.com/rishig",
|
|
||||||
"id": 890911,
|
|
||||||
"login": "rishig",
|
|
||||||
"node_id": "MDQ6VXNlcjg5MDkxMQ==",
|
|
||||||
"organizations_url": "https://api.github.com/users/rishig/orgs",
|
|
||||||
"received_events_url": "https://api.github.com/users/rishig/received_events",
|
|
||||||
"repos_url": "https://api.github.com/users/rishig/repos",
|
|
||||||
"site_admin": false,
|
|
||||||
"starred_url": "https://api.github.com/users/rishig/starred{/owner}{/repo}",
|
|
||||||
"subscriptions_url": "https://api.github.com/users/rishig/subscriptions",
|
|
||||||
"type": "User",
|
|
||||||
"url": "https://api.github.com/users/rishig"
|
|
||||||
},
|
|
||||||
"sender": {
|
|
||||||
"avatar_url": "https://avatars0.githubusercontent.com/u/7251823?v=4",
|
|
||||||
"events_url": "https://api.github.com/users/eeshangarg/events{/privacy}",
|
|
||||||
"followers_url": "https://api.github.com/users/eeshangarg/followers",
|
|
||||||
"following_url": "https://api.github.com/users/eeshangarg/following{/other_user}",
|
|
||||||
"gists_url": "https://api.github.com/users/eeshangarg/gists{/gist_id}",
|
|
||||||
"gravatar_id": "",
|
|
||||||
"html_url": "https://github.com/eeshangarg",
|
|
||||||
"id": 7251823,
|
|
||||||
"login": "eeshangarg",
|
|
||||||
"node_id": "MDQ6VXNlcjcyNTE4MjM=",
|
|
||||||
"organizations_url": "https://api.github.com/users/eeshangarg/orgs",
|
|
||||||
"received_events_url": "https://api.github.com/users/eeshangarg/received_events",
|
|
||||||
"repos_url": "https://api.github.com/users/eeshangarg/repos",
|
|
||||||
"site_admin": false,
|
|
||||||
"starred_url": "https://api.github.com/users/eeshangarg/starred{/owner}{/repo}",
|
|
||||||
"subscriptions_url": "https://api.github.com/users/eeshangarg/subscriptions",
|
|
||||||
"type": "User",
|
|
||||||
"url": "https://api.github.com/users/eeshangarg"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -320,24 +320,8 @@ class GitHubWebhookTest(WebhookTestCase):
|
|||||||
expected_message,
|
expected_message,
|
||||||
)
|
)
|
||||||
|
|
||||||
def test_pull_request_review_requested_singular_key_msg(self) -> None:
|
|
||||||
expected_message = "**eeshangarg** requested [rishig](https://github.com/rishig) for a review on [PR #6](https://github.com/eeshangarg/Scheduler/pull/6)."
|
|
||||||
self.check_webhook(
|
|
||||||
"pull_request__review_requested_singular_key",
|
|
||||||
"Scheduler / PR #6 Mention how awesome this project is in ...",
|
|
||||||
expected_message,
|
|
||||||
)
|
|
||||||
|
|
||||||
def test_pull_request_review_requested_multiple_reviwers_msg(self) -> None:
|
|
||||||
expected_message = "**eeshangarg** requested [showell](https://github.com/showell) and [timabbott](https://github.com/timabbott) for a review on [PR #1](https://github.com/eeshangarg/Scheduler/pull/1)."
|
|
||||||
self.check_webhook(
|
|
||||||
"pull_request__review_requested_multiple_reviewers",
|
|
||||||
"Scheduler / PR #1 This is just a test commit",
|
|
||||||
expected_message,
|
|
||||||
)
|
|
||||||
|
|
||||||
def test_pull_request__review_requested_team_reviewer_msg(self) -> None:
|
def test_pull_request__review_requested_team_reviewer_msg(self) -> None:
|
||||||
expected_message = "**singhsourabh** requested [shreyaskargit](https://github.com/shreyaskargit), [bajaj99prashant](https://github.com/bajaj99prashant), [review-team](https://github.com/orgs/test-org965/teams/review-team), [authority](https://github.com/orgs/test-org965/teams/authority) and [management](https://github.com/orgs/test-org965/teams/management) for a review on [PR #4](https://github.com/test-org965/webhook-test/pull/4)."
|
expected_message = "**singhsourabh** requested [authority](https://github.com/orgs/test-org965/teams/authority) for a review on [PR #4](https://github.com/test-org965/webhook-test/pull/4)."
|
||||||
self.check_webhook(
|
self.check_webhook(
|
||||||
"pull_request__review_requested_team_reviewer",
|
"pull_request__review_requested_team_reviewer",
|
||||||
"webhook-test / PR #4 testing webhook",
|
"webhook-test / PR #4 testing webhook",
|
||||||
|
|||||||
@@ -466,10 +466,8 @@ def get_pull_request_review_requested_body(helper: Helper) -> str:
|
|||||||
payload = helper.payload
|
payload = helper.payload
|
||||||
include_title = helper.include_title
|
include_title = helper.include_title
|
||||||
requested_reviewer = [payload["requested_reviewer"]] if "requested_reviewer" in payload else []
|
requested_reviewer = [payload["requested_reviewer"]] if "requested_reviewer" in payload else []
|
||||||
requested_reviewers = payload["pull_request"]["requested_reviewers"] or requested_reviewer
|
|
||||||
|
|
||||||
requested_team = [payload["requested_team"]] if "requested_team" in payload else []
|
requested_team = [payload["requested_team"]] if "requested_team" in payload else []
|
||||||
requested_team_reviewers = payload["pull_request"]["requested_teams"] or requested_team
|
|
||||||
|
|
||||||
sender = get_sender_name(payload)
|
sender = get_sender_name(payload)
|
||||||
pr_number = payload["pull_request"]["number"]
|
pr_number = payload["pull_request"]["number"]
|
||||||
@@ -482,17 +480,14 @@ def get_pull_request_review_requested_body(helper: Helper) -> str:
|
|||||||
|
|
||||||
all_reviewers = []
|
all_reviewers = []
|
||||||
|
|
||||||
for reviewer in requested_reviewers:
|
for reviewer in requested_reviewer:
|
||||||
all_reviewers.append("[{login}]({html_url})".format(**reviewer))
|
all_reviewers.append("[{login}]({html_url})".format(**reviewer))
|
||||||
|
|
||||||
for team_reviewer in requested_team_reviewers:
|
for team_reviewer in requested_team:
|
||||||
all_reviewers.append("[{name}]({html_url})".format(**team_reviewer))
|
all_reviewers.append("[{name}]({html_url})".format(**team_reviewer))
|
||||||
|
|
||||||
reviewers = ""
|
reviewers = ""
|
||||||
if len(all_reviewers) == 1:
|
reviewers = all_reviewers[0]
|
||||||
reviewers = all_reviewers[0]
|
|
||||||
else:
|
|
||||||
reviewers = "{} and {}".format(", ".join(all_reviewers[:-1]), all_reviewers[-1])
|
|
||||||
|
|
||||||
return body.format(
|
return body.format(
|
||||||
sender=sender,
|
sender=sender,
|
||||||
|
|||||||
Reference in New Issue
Block a user