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

401 lines
23 KiB
JSON

{
"data": {
"url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/pulls/16",
"id": 201268640,
"node_id": "MDExOlB1bGxSZXF1ZXN0MjAxMjY4NjQw",
"html_url": "https://github.com/toolmantim/release-drafter-test-repository/pull/16",
"diff_url": "https://github.com/toolmantim/release-drafter-test-repository/pull/16.diff",
"patch_url": "https://github.com/toolmantim/release-drafter-test-repository/pull/16.patch",
"issue_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/issues/16",
"number": 1,
"state": "closed",
"locked": false,
"title": "More cowbell",
"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
},
"body": "",
"created_at": "2018-07-13T11:50:22Z",
"updated_at": "2018-07-13T11:50:42Z",
"closed_at": "2018-07-13T11:50:38Z",
"merged_at": "2018-07-13T11:50:38Z",
"merge_commit_sha": "90b3d77e3cff1b07649e92e9bf547ef2afed5303",
"assignee": null,
"assignees": [],
"requested_reviewers": [],
"requested_teams": [],
"labels": [],
"milestone": null,
"commits_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/pulls/16/commits",
"review_comments_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/pulls/16/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/16/comments",
"statuses_url": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/statuses/7f8f8627467e4008f3d46a7ee02bfadedaff38ee",
"head": {
"label": "toolmantim:another-one",
"ref": "another-one",
"sha": "7f8f8627467e4008f3d46a7ee02bfadedaff38ee",
"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"
}
},
"base": {
"label": "toolmantim:master",
"ref": "master",
"sha": "4efa05c624c630741b360737c3a1efea80b46a8e",
"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/16"
},
"html": {
"href": "https://github.com/toolmantim/release-drafter-test-repository/pull/16"
},
"issue": {
"href": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/issues/16"
},
"comments": {
"href": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/issues/16/comments"
},
"review_comments": {
"href": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/pulls/16/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/16/commits"
},
"statuses": {
"href": "https://api.github.com/repos/toolmantim/release-drafter-test-repository/statuses/7f8f8627467e4008f3d46a7ee02bfadedaff38ee"
}
},
"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:01 GMT",
"etag": "W/\"37a8cd22d2837439c5a03e1ee655cb69\"",
"last-modified": "Fri, 13 Jul 2018 11:50:42 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": "87D6:936F:86E80B2:AE6FCB1:5B4F328D",
"x-ratelimit-limit": "5000",
"x-ratelimit-remaining": "4993",
"x-ratelimit-reset": "1531920508",
"x-runtime-rack": "0.153855",
"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:01 GMT",
"etag": "W/\"37a8cd22d2837439c5a03e1ee655cb69\"",
"last-modified": "Fri, 13 Jul 2018 11:50:42 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": "87D6:936F:86E80B2:AE6FCB1:5B4F328D",
"x-ratelimit-limit": "5000",
"x-ratelimit-remaining": "4993",
"x-ratelimit-reset": "1531920508",
"x-runtime-rack": "0.153855",
"x-xss-protection": "1; mode=block"
}
}