From ea3ee573059664ef3c4e43b96ec0b2369e506547 Mon Sep 17 00:00:00 2001 From: alezakos Date: Tue, 14 Mar 2017 23:45:19 +0200 Subject: Add a sample .json file for PR reviews --- samples/pr-review.json | 443 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 443 insertions(+) create mode 100644 samples/pr-review.json diff --git a/samples/pr-review.json b/samples/pr-review.json new file mode 100644 index 0000000..41e27ee --- /dev/null +++ b/samples/pr-review.json @@ -0,0 +1,443 @@ +{ + "action": "submitted", + "review": { + "id": 26939630, + "user": { + "login": "kongr45gpen", + "id": 720678, + "avatar_url": "https://avatars0.githubusercontent.com/u/720678?v=3", + "gravatar_id": "", + "url": "https://api.github.com/users/kongr45gpen", + "html_url": "https://github.com/kongr45gpen", + "followers_url": "https://api.github.com/users/kongr45gpen/followers", + "following_url": "https://api.github.com/users/kongr45gpen/following{/other_user}", + "gists_url": "https://api.github.com/users/kongr45gpen/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kongr45gpen/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kongr45gpen/subscriptions", + "organizations_url": "https://api.github.com/users/kongr45gpen/orgs", + "repos_url": "https://api.github.com/users/kongr45gpen/repos", + "events_url": "https://api.github.com/users/kongr45gpen/events{/privacy}", + "received_events_url": "https://api.github.com/users/kongr45gpen/received_events", + "type": "User", + "site_admin": false + }, + "body": null, + "commit_id": "7f46f55d67c50f50dc51a00d2487250c4c1e5e94", + "submitted_at": "2017-03-14T21:39:07Z", + "state": "approved", + "html_url": "https://github.com/kongr45gpen/test/pull/1#pullrequestreview-26939630", + "pull_request_url": "https://api.github.com/repos/kongr45gpen/test/pulls/1", + "_links": { + "html": { + "href": "https://github.com/kongr45gpen/test/pull/1#pullrequestreview-26939630" + }, + "pull_request": { + "href": "https://api.github.com/repos/kongr45gpen/test/pulls/1" + } + } + }, + "pull_request": { + "url": "https://api.github.com/repos/kongr45gpen/test/pulls/1", + "id": 109673211, + "html_url": "https://github.com/kongr45gpen/test/pull/1", + "diff_url": "https://github.com/kongr45gpen/test/pull/1.diff", + "patch_url": "https://github.com/kongr45gpen/test/pull/1.patch", + "issue_url": "https://api.github.com/repos/kongr45gpen/test/issues/1", + "number": 1, + "state": "open", + "locked": false, + "title": "Update bogosort.cpp", + "user": { + "login": "monohacker", + "id": 4696795, + "avatar_url": "https://avatars3.githubusercontent.com/u/4696795?v=3", + "gravatar_id": "", + "url": "https://api.github.com/users/monohacker", + "html_url": "https://github.com/monohacker", + "followers_url": "https://api.github.com/users/monohacker/followers", + "following_url": "https://api.github.com/users/monohacker/following{/other_user}", + "gists_url": "https://api.github.com/users/monohacker/gists{/gist_id}", + "starred_url": "https://api.github.com/users/monohacker/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/monohacker/subscriptions", + "organizations_url": "https://api.github.com/users/monohacker/orgs", + "repos_url": "https://api.github.com/users/monohacker/repos", + "events_url": "https://api.github.com/users/monohacker/events{/privacy}", + "received_events_url": "https://api.github.com/users/monohacker/received_events", + "type": "User", + "site_admin": false + }, + "body": "Added option for checking if array is sorted in increasing or decreasing order. Increasing order is the default option.", + "created_at": "2017-03-08T11:01:05Z", + "updated_at": "2017-03-14T21:39:07Z", + "closed_at": null, + "merged_at": null, + "merge_commit_sha": "d0acbf196500b1cb8a8a361285988edf83ca73e3", + "assignee": null, + "assignees": [ + + ], + "milestone": null, + "commits_url": "https://api.github.com/repos/kongr45gpen/test/pulls/1/commits", + "review_comments_url": "https://api.github.com/repos/kongr45gpen/test/pulls/1/comments", + "review_comment_url": "https://api.github.com/repos/kongr45gpen/test/pulls/comments{/number}", + "comments_url": "https://api.github.com/repos/kongr45gpen/test/issues/1/comments", + "statuses_url": "https://api.github.com/repos/kongr45gpen/test/statuses/7f46f55d67c50f50dc51a00d2487250c4c1e5e94", + "head": { + "label": "monohacker:master", + "ref": "master", + "sha": "7f46f55d67c50f50dc51a00d2487250c4c1e5e94", + "user": { + "login": "monohacker", + "id": 4696795, + "avatar_url": "https://avatars3.githubusercontent.com/u/4696795?v=3", + "gravatar_id": "", + "url": "https://api.github.com/users/monohacker", + "html_url": "https://github.com/monohacker", + "followers_url": "https://api.github.com/users/monohacker/followers", + "following_url": "https://api.github.com/users/monohacker/following{/other_user}", + "gists_url": "https://api.github.com/users/monohacker/gists{/gist_id}", + "starred_url": "https://api.github.com/users/monohacker/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/monohacker/subscriptions", + "organizations_url": "https://api.github.com/users/monohacker/orgs", + "repos_url": "https://api.github.com/users/monohacker/repos", + "events_url": "https://api.github.com/users/monohacker/events{/privacy}", + "received_events_url": "https://api.github.com/users/monohacker/received_events", + "type": "User", + "site_admin": false + }, + "repo": { + "id": 84310681, + "name": "test", + "full_name": "monohacker/test", + "owner": { + "login": "monohacker", + "id": 4696795, + "avatar_url": "https://avatars3.githubusercontent.com/u/4696795?v=3", + "gravatar_id": "", + "url": "https://api.github.com/users/monohacker", + "html_url": "https://github.com/monohacker", + "followers_url": "https://api.github.com/users/monohacker/followers", + "following_url": "https://api.github.com/users/monohacker/following{/other_user}", + "gists_url": "https://api.github.com/users/monohacker/gists{/gist_id}", + "starred_url": "https://api.github.com/users/monohacker/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/monohacker/subscriptions", + "organizations_url": "https://api.github.com/users/monohacker/orgs", + "repos_url": "https://api.github.com/users/monohacker/repos", + "events_url": "https://api.github.com/users/monohacker/events{/privacy}", + "received_events_url": "https://api.github.com/users/monohacker/received_events", + "type": "User", + "site_admin": false + }, + "private": false, + "html_url": "https://github.com/monohacker/test", + "description": "Implementations of various test in C++", + "fork": true, + "url": "https://api.github.com/repos/monohacker/test", + "forks_url": "https://api.github.com/repos/monohacker/test/forks", + "keys_url": "https://api.github.com/repos/monohacker/test/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/monohacker/test/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/monohacker/test/teams", + "hooks_url": "https://api.github.com/repos/monohacker/test/hooks", + "issue_events_url": "https://api.github.com/repos/monohacker/test/issues/events{/number}", + "events_url": "https://api.github.com/repos/monohacker/test/events", + "assignees_url": "https://api.github.com/repos/monohacker/test/assignees{/user}", + "branches_url": "https://api.github.com/repos/monohacker/test/branches{/branch}", + "tags_url": "https://api.github.com/repos/monohacker/test/tags", + "blobs_url": "https://api.github.com/repos/monohacker/test/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/monohacker/test/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/monohacker/test/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/monohacker/test/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/monohacker/test/statuses/{sha}", + "languages_url": "https://api.github.com/repos/monohacker/test/languages", + "stargazers_url": "https://api.github.com/repos/monohacker/test/stargazers", + "contributors_url": "https://api.github.com/repos/monohacker/test/contributors", + "subscribers_url": "https://api.github.com/repos/monohacker/test/subscribers", + "subscription_url": "https://api.github.com/repos/monohacker/test/subscription", + "commits_url": "https://api.github.com/repos/monohacker/test/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/monohacker/test/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/monohacker/test/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/monohacker/test/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/monohacker/test/contents/{+path}", + "compare_url": "https://api.github.com/repos/monohacker/test/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/monohacker/test/merges", + "archive_url": "https://api.github.com/repos/monohacker/test/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/monohacker/test/downloads", + "issues_url": "https://api.github.com/repos/monohacker/test/issues{/number}", + "pulls_url": "https://api.github.com/repos/monohacker/test/pulls{/number}", + "milestones_url": "https://api.github.com/repos/monohacker/test/milestones{/number}", + "notifications_url": "https://api.github.com/repos/monohacker/test/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/monohacker/test/labels{/name}", + "releases_url": "https://api.github.com/repos/monohacker/test/releases{/id}", + "deployments_url": "https://api.github.com/repos/monohacker/test/deployments", + "created_at": "2017-03-08T10:57:06Z", + "updated_at": "2017-03-08T10:57:08Z", + "pushed_at": "2017-03-14T21:38:33Z", + "git_url": "git://github.com/monohacker/test.git", + "ssh_url": "git@github.com:monohacker/test.git", + "clone_url": "https://github.com/monohacker/test.git", + "svn_url": "https://github.com/monohacker/test", + "homepage": null, + "size": 2, + "stargazers_count": 0, + "watchers_count": 0, + "language": "C++", + "has_issues": false, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "open_issues_count": 0, + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "master" + } + }, + "base": { + "label": "kongr45gpen:master", + "ref": "master", + "sha": "83e7cb8fb7a2c547a30dc218eba4db41238ada20", + "user": { + "login": "kongr45gpen", + "id": 720678, + "avatar_url": "https://avatars0.githubusercontent.com/u/720678?v=3", + "gravatar_id": "", + "url": "https://api.github.com/users/kongr45gpen", + "html_url": "https://github.com/kongr45gpen", + "followers_url": "https://api.github.com/users/kongr45gpen/followers", + "following_url": "https://api.github.com/users/kongr45gpen/following{/other_user}", + "gists_url": "https://api.github.com/users/kongr45gpen/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kongr45gpen/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kongr45gpen/subscriptions", + "organizations_url": "https://api.github.com/users/kongr45gpen/orgs", + "repos_url": "https://api.github.com/users/kongr45gpen/repos", + "events_url": "https://api.github.com/users/kongr45gpen/events{/privacy}", + "received_events_url": "https://api.github.com/users/kongr45gpen/received_events", + "type": "User", + "site_admin": false + }, + "repo": { + "id": 19006712, + "name": "test", + "full_name": "kongr45gpen/test", + "owner": { + "login": "kongr45gpen", + "id": 720678, + "avatar_url": "https://avatars0.githubusercontent.com/u/720678?v=3", + "gravatar_id": "", + "url": "https://api.github.com/users/kongr45gpen", + "html_url": "https://github.com/kongr45gpen", + "followers_url": "https://api.github.com/users/kongr45gpen/followers", + "following_url": "https://api.github.com/users/kongr45gpen/following{/other_user}", + "gists_url": "https://api.github.com/users/kongr45gpen/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kongr45gpen/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kongr45gpen/subscriptions", + "organizations_url": "https://api.github.com/users/kongr45gpen/orgs", + "repos_url": "https://api.github.com/users/kongr45gpen/repos", + "events_url": "https://api.github.com/users/kongr45gpen/events{/privacy}", + "received_events_url": "https://api.github.com/users/kongr45gpen/received_events", + "type": "User", + "site_admin": false + }, + "private": false, + "html_url": "https://github.com/kongr45gpen/test", + "description": "Implementations of various test in C++", + "fork": false, + "url": "https://api.github.com/repos/kongr45gpen/test", + "forks_url": "https://api.github.com/repos/kongr45gpen/test/forks", + "keys_url": "https://api.github.com/repos/kongr45gpen/test/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/kongr45gpen/test/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/kongr45gpen/test/teams", + "hooks_url": "https://api.github.com/repos/kongr45gpen/test/hooks", + "issue_events_url": "https://api.github.com/repos/kongr45gpen/test/issues/events{/number}", + "events_url": "https://api.github.com/repos/kongr45gpen/test/events", + "assignees_url": "https://api.github.com/repos/kongr45gpen/test/assignees{/user}", + "branches_url": "https://api.github.com/repos/kongr45gpen/test/branches{/branch}", + "tags_url": "https://api.github.com/repos/kongr45gpen/test/tags", + "blobs_url": "https://api.github.com/repos/kongr45gpen/test/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/kongr45gpen/test/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/kongr45gpen/test/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/kongr45gpen/test/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/kongr45gpen/test/statuses/{sha}", + "languages_url": "https://api.github.com/repos/kongr45gpen/test/languages", + "stargazers_url": "https://api.github.com/repos/kongr45gpen/test/stargazers", + "contributors_url": "https://api.github.com/repos/kongr45gpen/test/contributors", + "subscribers_url": "https://api.github.com/repos/kongr45gpen/test/subscribers", + "subscription_url": "https://api.github.com/repos/kongr45gpen/test/subscription", + "commits_url": "https://api.github.com/repos/kongr45gpen/test/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/kongr45gpen/test/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/kongr45gpen/test/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/kongr45gpen/test/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/kongr45gpen/test/contents/{+path}", + "compare_url": "https://api.github.com/repos/kongr45gpen/test/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/kongr45gpen/test/merges", + "archive_url": "https://api.github.com/repos/kongr45gpen/test/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/kongr45gpen/test/downloads", + "issues_url": "https://api.github.com/repos/kongr45gpen/test/issues{/number}", + "pulls_url": "https://api.github.com/repos/kongr45gpen/test/pulls{/number}", + "milestones_url": "https://api.github.com/repos/kongr45gpen/test/milestones{/number}", + "notifications_url": "https://api.github.com/repos/kongr45gpen/test/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/kongr45gpen/test/labels{/name}", + "releases_url": "https://api.github.com/repos/kongr45gpen/test/releases{/id}", + "deployments_url": "https://api.github.com/repos/kongr45gpen/test/deployments", + "created_at": "2014-04-21T20:55:52Z", + "updated_at": "2015-09-18T17:13:47Z", + "pushed_at": "2017-03-14T21:38:35Z", + "git_url": "git://github.com/kongr45gpen/test.git", + "ssh_url": "git@github.com:kongr45gpen/test.git", + "clone_url": "https://github.com/kongr45gpen/test.git", + "svn_url": "https://github.com/kongr45gpen/test", + "homepage": null, + "size": 160, + "stargazers_count": 0, + "watchers_count": 0, + "language": "C++", + "has_issues": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 1, + "mirror_url": null, + "open_issues_count": 1, + "forks": 1, + "open_issues": 1, + "watchers": 0, + "default_branch": "master" + } + }, + "_links": { + "self": { + "href": "https://api.github.com/repos/kongr45gpen/test/pulls/1" + }, + "html": { + "href": "https://github.com/kongr45gpen/test/pull/1" + }, + "issue": { + "href": "https://api.github.com/repos/kongr45gpen/test/issues/1" + }, + "comments": { + "href": "https://api.github.com/repos/kongr45gpen/test/issues/1/comments" + }, + "review_comments": { + "href": "https://api.github.com/repos/kongr45gpen/test/pulls/1/comments" + }, + "review_comment": { + "href": "https://api.github.com/repos/kongr45gpen/test/pulls/comments{/number}" + }, + "commits": { + "href": "https://api.github.com/repos/kongr45gpen/test/pulls/1/commits" + }, + "statuses": { + "href": "https://api.github.com/repos/kongr45gpen/test/statuses/7f46f55d67c50f50dc51a00d2487250c4c1e5e94" + } + } + }, + "repository": { + "id": 19006712, + "name": "test", + "full_name": "kongr45gpen/test", + "owner": { + "login": "kongr45gpen", + "id": 720678, + "avatar_url": "https://avatars0.githubusercontent.com/u/720678?v=3", + "gravatar_id": "", + "url": "https://api.github.com/users/kongr45gpen", + "html_url": "https://github.com/kongr45gpen", + "followers_url": "https://api.github.com/users/kongr45gpen/followers", + "following_url": "https://api.github.com/users/kongr45gpen/following{/other_user}", + "gists_url": "https://api.github.com/users/kongr45gpen/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kongr45gpen/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kongr45gpen/subscriptions", + "organizations_url": "https://api.github.com/users/kongr45gpen/orgs", + "repos_url": "https://api.github.com/users/kongr45gpen/repos", + "events_url": "https://api.github.com/users/kongr45gpen/events{/privacy}", + "received_events_url": "https://api.github.com/users/kongr45gpen/received_events", + "type": "User", + "site_admin": false + }, + "private": false, + "html_url": "https://github.com/kongr45gpen/test", + "description": "Implementations of various test in C++", + "fork": false, + "url": "https://api.github.com/repos/kongr45gpen/test", + "forks_url": "https://api.github.com/repos/kongr45gpen/test/forks", + "keys_url": "https://api.github.com/repos/kongr45gpen/test/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/kongr45gpen/test/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/kongr45gpen/test/teams", + "hooks_url": "https://api.github.com/repos/kongr45gpen/test/hooks", + "issue_events_url": "https://api.github.com/repos/kongr45gpen/test/issues/events{/number}", + "events_url": "https://api.github.com/repos/kongr45gpen/test/events", + "assignees_url": "https://api.github.com/repos/kongr45gpen/test/assignees{/user}", + "branches_url": "https://api.github.com/repos/kongr45gpen/test/branches{/branch}", + "tags_url": "https://api.github.com/repos/kongr45gpen/test/tags", + "blobs_url": "https://api.github.com/repos/kongr45gpen/test/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/kongr45gpen/test/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/kongr45gpen/test/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/kongr45gpen/test/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/kongr45gpen/test/statuses/{sha}", + "languages_url": "https://api.github.com/repos/kongr45gpen/test/languages", + "stargazers_url": "https://api.github.com/repos/kongr45gpen/test/stargazers", + "contributors_url": "https://api.github.com/repos/kongr45gpen/test/contributors", + "subscribers_url": "https://api.github.com/repos/kongr45gpen/test/subscribers", + "subscription_url": "https://api.github.com/repos/kongr45gpen/test/subscription", + "commits_url": "https://api.github.com/repos/kongr45gpen/test/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/kongr45gpen/test/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/kongr45gpen/test/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/kongr45gpen/test/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/kongr45gpen/test/contents/{+path}", + "compare_url": "https://api.github.com/repos/kongr45gpen/test/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/kongr45gpen/test/merges", + "archive_url": "https://api.github.com/repos/kongr45gpen/test/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/kongr45gpen/test/downloads", + "issues_url": "https://api.github.com/repos/kongr45gpen/test/issues{/number}", + "pulls_url": "https://api.github.com/repos/kongr45gpen/test/pulls{/number}", + "milestones_url": "https://api.github.com/repos/kongr45gpen/test/milestones{/number}", + "notifications_url": "https://api.github.com/repos/kongr45gpen/test/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/kongr45gpen/test/labels{/name}", + "releases_url": "https://api.github.com/repos/kongr45gpen/test/releases{/id}", + "deployments_url": "https://api.github.com/repos/kongr45gpen/test/deployments", + "created_at": "2014-04-21T20:55:52Z", + "updated_at": "2015-09-18T17:13:47Z", + "pushed_at": "2017-03-14T21:38:35Z", + "git_url": "git://github.com/kongr45gpen/test.git", + "ssh_url": "git@github.com:kongr45gpen/test.git", + "clone_url": "https://github.com/kongr45gpen/test.git", + "svn_url": "https://github.com/kongr45gpen/test", + "homepage": null, + "size": 160, + "stargazers_count": 0, + "watchers_count": 0, + "language": "C++", + "has_issues": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 1, + "mirror_url": null, + "open_issues_count": 1, + "forks": 1, + "open_issues": 1, + "watchers": 0, + "default_branch": "master" + }, + "sender": { + "login": "kongr45gpen", + "id": 720678, + "avatar_url": "https://avatars0.githubusercontent.com/u/720678?v=3", + "gravatar_id": "", + "url": "https://api.github.com/users/kongr45gpen", + "html_url": "https://github.com/kongr45gpen", + "followers_url": "https://api.github.com/users/kongr45gpen/followers", + "following_url": "https://api.github.com/users/kongr45gpen/following{/other_user}", + "gists_url": "https://api.github.com/users/kongr45gpen/gists{/gist_id}", + "starred_url": "https://api.github.com/users/kongr45gpen/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/kongr45gpen/subscriptions", + "organizations_url": "https://api.github.com/users/kongr45gpen/orgs", + "repos_url": "https://api.github.com/users/kongr45gpen/repos", + "events_url": "https://api.github.com/users/kongr45gpen/events{/privacy}", + "received_events_url": "https://api.github.com/users/kongr45gpen/received_events", + "type": "User", + "site_admin": false + } +} -- cgit v1.2.3