Files
release-drafter/test/fixtures/pull-request-2.json
Tim Lucas 5d8319ff4c Tests
2018-07-18 22:43:39 +10:00

401 lines
24 KiB
JSON

{
"data": {
"url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/pulls/15",
"id": 201266460,
"node_id": "MDExOlB1bGxSZXF1ZXN0MjAxMjY2NDYw",
"html_url": "https://github.com/toolmantim/release-drafter-test-repository/pull/15",
"diff_url": "https://github.com/toolmantim/release-drafter-test-repository/pull/15.diff",
"patch_url": "https://github.com/toolmantim/release-drafter-test-repository/pull/15.patch",
"issue_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/issues/15",
"number": 2,
"state": "closed",
"locked": false,
"title": "Integrate alien technology",
"user": {
"login": "another-user",
"id": 153,
"node_id": "MDQ6VXNlcjE1Mw==",
"avatar_url": "https://avatars3.githubusercontent.com/u/153?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/another-user",
"html_url": "https://github.com/another-user",
"followers_url": "https://api.github.com/users/another-user/followers",
"following_url": "https://api.github.com/users/another-user/following{/other_user}",
"gists_url": "https://api.github.com/users/another-user/gists{/gist_id}",
"starred_url": "https://api.github.com/users/another-user/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/another-user/subscriptions",
"organizations_url": "https://api.github.com/users/another-user/orgs",
"repos_url": "https://api.github.com/users/another-user/repos",
"events_url": "https://api.github.com/users/another-user/events{/privacy}",
"received_events_url": "https://api.github.com/users/another-user/received_events",
"type": "User",
"site_admin": false
},
"body": "",
"created_at": "2018-07-13T11:39:56Z",
"updated_at": "2018-07-13T11:40:11Z",
"closed_at": "2018-07-13T11:40:10Z",
"merged_at": "2018-07-13T11:40:10Z",
"merge_commit_sha": "4efa05c624c630741b360737c3a1efea80b46a8e",
"assignee": null,
"assignees": [],
"requested_reviewers": [],
"requested_teams": [],
"labels": [],
"milestone": null,
"commits_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/pulls/15/commits",
"review_comments_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/pulls/15/comments",
"review_comment_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/pulls/comments{/number}",
"comments_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/issues/15/comments",
"statuses_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/statuses/8cb65dd3d681136a3420c84163d703f09ce5a71e",
"head": {
"label": "toolmantim:oh-hai-there",
"ref": "oh-hai-there",
"sha": "8cb65dd3d681136a3420c84163d703f09ce5a71e",
"user": {
"login": "another-user",
"id": 153,
"node_id": "MDQ6VXNlcjE1Mw==",
"avatar_url": "https://avatars3.githubusercontent.com/u/153?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/another-user",
"html_url": "https://github.com/another-user",
"followers_url": "https://api.github.com/users/another-user/followers",
"following_url": "https://api.github.com/users/another-user/following{/other_user}",
"gists_url": "https://api.github.com/users/another-user/gists{/gist_id}",
"starred_url": "https://api.github.com/users/another-user/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/another-user/subscriptions",
"organizations_url": "https://api.github.com/users/another-user/orgs",
"repos_url": "https://api.github.com/users/another-user/repos",
"events_url": "https://api.github.com/users/another-user/events{/privacy}",
"received_events_url": "https://api.github.com/users/another-user/received_events",
"type": "User",
"site_admin": false
},
"repo": {
"id": 138732481,
"node_id": "MDEwOlJlcG9zaXRvcnkxMzg3MzI0ODE=",
"name": "release-drafter-test-repository",
"full_name": "toolmantim/release-drafter-test-repository",
"owner": {
"login": "toolmantim",
"id": 153,
"node_id": "MDQ6VXNlcjE1Mw==",
"avatar_url": "https://avatars3.githubusercontent.com/u/153?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/toolmantim",
"html_url": "https://github.com/toolmantim",
"followers_url": "https://api.github.com/users/toolmantim/followers",
"following_url": "https://api.github.com/users/toolmantim/following{/other_user}",
"gists_url": "https://api.github.com/users/toolmantim/gists{/gist_id}",
"starred_url": "https://api.github.com/users/toolmantim/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/toolmantim/subscriptions",
"organizations_url": "https://api.github.com/users/toolmantim/orgs",
"repos_url": "https://api.github.com/users/toolmantim/repos",
"events_url": "https://api.github.com/users/toolmantim/events{/privacy}",
"received_events_url": "https://api.github.com/users/toolmantim/received_events",
"type": "User",
"site_admin": false
},
"private": true,
"html_url": "https://github.com/toolmantim/release-drafter-test-repository",
"description": null,
"fork": false,
"url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository",
"forks_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/forks",
"keys_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/keys{/key_id}",
"collaborators_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/collaborators{/collaborator}",
"teams_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/teams",
"hooks_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/hooks",
"issue_events_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/issues/events{/number}",
"events_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/events",
"assignees_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/assignees{/user}",
"branches_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/branches{/branch}",
"tags_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/tags",
"blobs_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/git/blobs{/sha}",
"git_tags_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/git/tags{/sha}",
"git_refs_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/git/refs{/sha}",
"trees_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/git/trees{/sha}",
"statuses_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/statuses/{sha}",
"languages_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/languages",
"stargazers_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/stargazers",
"contributors_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/contributors",
"subscribers_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/subscribers",
"subscription_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/subscription",
"commits_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/commits{/sha}",
"git_commits_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/git/commits{/sha}",
"comments_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/comments{/number}",
"issue_comment_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/issues/comments{/number}",
"contents_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/contents/{+path}",
"compare_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/compare/{base}...{head}",
"merges_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/merges",
"archive_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/{archive_format}{/ref}",
"downloads_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/downloads",
"issues_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/issues{/number}",
"pulls_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/pulls{/number}",
"milestones_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/milestones{/number}",
"notifications_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/notifications{?since,all,participating}",
"labels_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/labels{/name}",
"releases_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/releases{/id}",
"deployments_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/deployments",
"created_at": "2018-06-26T12:07:37Z",
"updated_at": "2018-07-18T12:28:55Z",
"pushed_at": "2018-07-18T12:28:54Z",
"git_url": "git://github.com/toolmantim/release-drafter-test-repository.git",
"ssh_url": "git@github.com:toolmantim/release-drafter-test-repository.git",
"clone_url": "https://github.com/toolmantim/release-drafter-test-repository.git",
"svn_url": "https://github.com/toolmantim/release-drafter-test-repository",
"homepage": null,
"size": 85,
"stargazers_count": 0,
"watchers_count": 0,
"language": null,
"has_issues": false,
"has_projects": false,
"has_downloads": true,
"has_wiki": false,
"has_pages": false,
"forks_count": 0,
"mirror_url": null,
"archived": false,
"open_issues_count": 0,
"license": null,
"forks": 0,
"open_issues": 0,
"watchers": 0,
"default_branch": "master"
}
},
"base": {
"label": "toolmantim:master",
"ref": "master",
"sha": "8c58c29bf7f4285fb8212f71adcaac323b08e4e2",
"user": {
"login": "toolmantim",
"id": 153,
"node_id": "MDQ6VXNlcjE1Mw==",
"avatar_url": "https://avatars3.githubusercontent.com/u/153?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/toolmantim",
"html_url": "https://github.com/toolmantim",
"followers_url": "https://api.github.com/users/toolmantim/followers",
"following_url": "https://api.github.com/users/toolmantim/following{/other_user}",
"gists_url": "https://api.github.com/users/toolmantim/gists{/gist_id}",
"starred_url": "https://api.github.com/users/toolmantim/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/toolmantim/subscriptions",
"organizations_url": "https://api.github.com/users/toolmantim/orgs",
"repos_url": "https://api.github.com/users/toolmantim/repos",
"events_url": "https://api.github.com/users/toolmantim/events{/privacy}",
"received_events_url": "https://api.github.com/users/toolmantim/received_events",
"type": "User",
"site_admin": false
},
"repo": {
"id": 138732481,
"node_id": "MDEwOlJlcG9zaXRvcnkxMzg3MzI0ODE=",
"name": "release-drafter-test-repository",
"full_name": "toolmantim/release-drafter-test-repository",
"owner": {
"login": "toolmantim",
"id": 153,
"node_id": "MDQ6VXNlcjE1Mw==",
"avatar_url": "https://avatars3.githubusercontent.com/u/153?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/toolmantim",
"html_url": "https://github.com/toolmantim",
"followers_url": "https://api.github.com/users/toolmantim/followers",
"following_url": "https://api.github.com/users/toolmantim/following{/other_user}",
"gists_url": "https://api.github.com/users/toolmantim/gists{/gist_id}",
"starred_url": "https://api.github.com/users/toolmantim/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/toolmantim/subscriptions",
"organizations_url": "https://api.github.com/users/toolmantim/orgs",
"repos_url": "https://api.github.com/users/toolmantim/repos",
"events_url": "https://api.github.com/users/toolmantim/events{/privacy}",
"received_events_url": "https://api.github.com/users/toolmantim/received_events",
"type": "User",
"site_admin": false
},
"private": true,
"html_url": "https://github.com/toolmantim/release-drafter-test-repository",
"description": null,
"fork": false,
"url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository",
"forks_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/forks",
"keys_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/keys{/key_id}",
"collaborators_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/collaborators{/collaborator}",
"teams_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/teams",
"hooks_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/hooks",
"issue_events_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/issues/events{/number}",
"events_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/events",
"assignees_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/assignees{/user}",
"branches_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/branches{/branch}",
"tags_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/tags",
"blobs_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/git/blobs{/sha}",
"git_tags_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/git/tags{/sha}",
"git_refs_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/git/refs{/sha}",
"trees_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/git/trees{/sha}",
"statuses_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/statuses/{sha}",
"languages_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/languages",
"stargazers_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/stargazers",
"contributors_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/contributors",
"subscribers_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/subscribers",
"subscription_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/subscription",
"commits_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/commits{/sha}",
"git_commits_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/git/commits{/sha}",
"comments_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/comments{/number}",
"issue_comment_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/issues/comments{/number}",
"contents_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/contents/{+path}",
"compare_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/compare/{base}...{head}",
"merges_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/merges",
"archive_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/{archive_format}{/ref}",
"downloads_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/downloads",
"issues_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/issues{/number}",
"pulls_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/pulls{/number}",
"milestones_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/milestones{/number}",
"notifications_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/notifications{?since,all,participating}",
"labels_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/labels{/name}",
"releases_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/releases{/id}",
"deployments_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/deployments",
"created_at": "2018-06-26T12:07:37Z",
"updated_at": "2018-07-18T12:28:55Z",
"pushed_at": "2018-07-18T12:28:54Z",
"git_url": "git://github.com/toolmantim/release-drafter-test-repository.git",
"ssh_url": "git@github.com:toolmantim/release-drafter-test-repository.git",
"clone_url": "https://github.com/toolmantim/release-drafter-test-repository.git",
"svn_url": "https://github.com/toolmantim/release-drafter-test-repository",
"homepage": null,
"size": 85,
"stargazers_count": 0,
"watchers_count": 0,
"language": null,
"has_issues": false,
"has_projects": false,
"has_downloads": true,
"has_wiki": false,
"has_pages": false,
"forks_count": 0,
"mirror_url": null,
"archived": false,
"open_issues_count": 0,
"license": null,
"forks": 0,
"open_issues": 0,
"watchers": 0,
"default_branch": "master"
}
},
"_links": {
"self": {
"href": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/pulls/15"
},
"html": {
"href": "https://github.com/toolmantim/release-drafter-test-repository/pull/15"
},
"issue": {
"href": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/issues/15"
},
"comments": {
"href": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/issues/15/comments"
},
"review_comments": {
"href": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/pulls/15/comments"
},
"review_comment": {
"href": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/pulls/comments{/number}"
},
"commits": {
"href": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/pulls/15/commits"
},
"statuses": {
"href": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/statuses/8cb65dd3d681136a3420c84163d703f09ce5a71e"
}
},
"author_association": "OWNER",
"merged": true,
"mergeable": null,
"rebaseable": null,
"mergeable_state": "unknown",
"merged_by": {
"login": "toolmantim",
"id": 153,
"node_id": "MDQ6VXNlcjE1Mw==",
"avatar_url": "https://avatars3.githubusercontent.com/u/153?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/toolmantim",
"html_url": "https://github.com/toolmantim",
"followers_url": "https://api.github.com/users/toolmantim/followers",
"following_url": "https://api.github.com/users/toolmantim/following{/other_user}",
"gists_url": "https://api.github.com/users/toolmantim/gists{/gist_id}",
"starred_url": "https://api.github.com/users/toolmantim/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/toolmantim/subscriptions",
"organizations_url": "https://api.github.com/users/toolmantim/orgs",
"repos_url": "https://api.github.com/users/toolmantim/repos",
"events_url": "https://api.github.com/users/toolmantim/events{/privacy}",
"received_events_url": "https://api.github.com/users/toolmantim/received_events",
"type": "User",
"site_admin": false
},
"comments": 0,
"review_comments": 0,
"maintainer_can_modify": false,
"commits": 1,
"additions": 1,
"deletions": 1,
"changed_files": 1
},
"status": 200,
"headers": {
"access-control-allow-origin": "*",
"access-control-expose-headers": "ETag, Link, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval",
"cache-control": "private, max-age=60, s-maxage=60",
"connection": "close",
"content-encoding": "gzip",
"content-security-policy": "default-src 'none'",
"content-type": "application/json; charset=utf-8",
"date": "Wed, 18 Jul 2018 12:29:02 GMT",
"etag": "W/\"24bb87557760dcd6aa2cae64100060b9\"",
"last-modified": "Fri, 13 Jul 2018 11:40:11 GMT",
"referrer-policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
"server": "GitHub.com",
"status": "200 OK",
"strict-transport-security": "max-age=31536000; includeSubdomains; preload",
"transfer-encoding": "chunked",
"vary": "Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding",
"x-content-type-options": "nosniff",
"x-frame-options": "deny",
"x-github-media-type": "github.v3; format=json",
"x-github-request-id": "A0D4:936D:70BC703:924C159:5B4F328E",
"x-ratelimit-limit": "5000",
"x-ratelimit-remaining": "4992",
"x-ratelimit-reset": "1531920508",
"x-runtime-rack": "0.209879",
"x-xss-protection": "1; mode=block"
},
"meta": {
"access-control-allow-origin": "*",
"access-control-expose-headers": "ETag, Link, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval",
"cache-control": "private, max-age=60, s-maxage=60",
"connection": "close",
"content-encoding": "gzip",
"content-security-policy": "default-src 'none'",
"content-type": "application/json; charset=utf-8",
"date": "Wed, 18 Jul 2018 12:29:02 GMT",
"etag": "W/\"24bb87557760dcd6aa2cae64100060b9\"",
"last-modified": "Fri, 13 Jul 2018 11:40:11 GMT",
"referrer-policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
"server": "GitHub.com",
"status": "200 OK",
"strict-transport-security": "max-age=31536000; includeSubdomains; preload",
"transfer-encoding": "chunked",
"vary": "Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding",
"x-content-type-options": "nosniff",
"x-frame-options": "deny",
"x-github-media-type": "github.v3; format=json",
"x-github-request-id": "A0D4:936D:70BC703:924C159:5B4F328E",
"x-ratelimit-limit": "5000",
"x-ratelimit-remaining": "4992",
"x-ratelimit-reset": "1531920508",
"x-runtime-rack": "0.209879",
"x-xss-protection": "1; mode=block"
}
}