{ "url": "https://api.github.com/repos/danger/danger-plugin-template/pulls/18", "id": 185317229, "node_id": "MDExOlB1bGxSZXF1ZXN0MTg1MzE3MjI5", "html_url": "https://github.com/danger/danger-plugin-template/pull/18", "diff_url": "https://github.com/danger/danger-plugin-template/pull/18.diff", "patch_url": "https://github.com/danger/danger-plugin-template/pull/18.patch", "issue_url": "https://api.github.com/repos/danger/danger-plugin-template/issues/18", "number": 18, "state": "closed", "locked": false, "title": "add example of how to mock PRs", "user": { "login": "wilrnh", "id": 555966, "node_id": "MDQ6VXNlcjU1NTk2Ng==", "avatar_url": "https://avatars.githubusercontent.com/u/555966?v=4", "gravatar_id": "", "url": "https://api.github.com/users/wilrnh", "html_url": "https://github.com/wilrnh", "followers_url": "https://api.github.com/users/wilrnh/followers", "following_url": "https://api.github.com/users/wilrnh/following{/other_user}", "gists_url": "https://api.github.com/users/wilrnh/gists{/gist_id}", "starred_url": "https://api.github.com/users/wilrnh/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wilrnh/subscriptions", "organizations_url": "https://api.github.com/users/wilrnh/orgs", "repos_url": "https://api.github.com/users/wilrnh/repos", "events_url": "https://api.github.com/users/wilrnh/events{/privacy}", "received_events_url": "https://api.github.com/users/wilrnh/received_events", "type": "User", "site_admin": false }, "body": "Fixes danger/danger#661\r\n\r\nadd example how to mock PRs", "created_at": "2018-05-02T01:52:26Z", "updated_at": "2018-05-02T10:37:04Z", "closed_at": "2018-05-02T10:37:04Z", "merged_at": "2018-05-02T10:37:04Z", "merge_commit_sha": "39eacac22d52a2b70fc49bd8aba19eb7d2864717", "assignee": null, "assignees": [], "requested_reviewers": [], "requested_teams": [], "labels": [], "milestone": null, "draft": false, "commits_url": "https://api.github.com/repos/danger/danger-plugin-template/pulls/18/commits", "review_comments_url": "https://api.github.com/repos/danger/danger-plugin-template/pulls/18/comments", "review_comment_url": "https://api.github.com/repos/danger/danger-plugin-template/pulls/comments{/number}", "comments_url": "https://api.github.com/repos/danger/danger-plugin-template/issues/18/comments", "statuses_url": "https://api.github.com/repos/danger/danger-plugin-template/statuses/abe89bee0cdc5f45b1dee62c60e74c70f3fcb5d5", "head": { "label": "wilrnh:661-mocking-prs", "ref": "661-mocking-prs", "sha": "abe89bee0cdc5f45b1dee62c60e74c70f3fcb5d5", "user": { "login": "wilrnh", "id": 555966, "node_id": "MDQ6VXNlcjU1NTk2Ng==", "avatar_url": "https://avatars.githubusercontent.com/u/555966?v=4", "gravatar_id": "", "url": "https://api.github.com/users/wilrnh", "html_url": "https://github.com/wilrnh", "followers_url": "https://api.github.com/users/wilrnh/followers", "following_url": "https://api.github.com/users/wilrnh/following{/other_user}", "gists_url": "https://api.github.com/users/wilrnh/gists{/gist_id}", "starred_url": "https://api.github.com/users/wilrnh/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wilrnh/subscriptions", "organizations_url": "https://api.github.com/users/wilrnh/orgs", "repos_url": "https://api.github.com/users/wilrnh/repos", "events_url": "https://api.github.com/users/wilrnh/events{/privacy}", "received_events_url": "https://api.github.com/users/wilrnh/received_events", "type": "User", "site_admin": false }, "repo": null }, "base": { "label": "danger:master", "ref": "master", "sha": "30bd69c1c09d927abde0695fcb39dd70d4cc0f81", "user": { "login": "danger", "id": 17147106, "node_id": "MDEyOk9yZ2FuaXphdGlvbjE3MTQ3MTA2", "avatar_url": "https://avatars.githubusercontent.com/u/17147106?v=4", "gravatar_id": "", "url": "https://api.github.com/users/danger", "html_url": "https://github.com/danger", "followers_url": "https://api.github.com/users/danger/followers", "following_url": "https://api.github.com/users/danger/following{/other_user}", "gists_url": "https://api.github.com/users/danger/gists{/gist_id}", "starred_url": "https://api.github.com/users/danger/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/danger/subscriptions", "organizations_url": "https://api.github.com/users/danger/orgs", "repos_url": "https://api.github.com/users/danger/repos", "events_url": "https://api.github.com/users/danger/events{/privacy}", "received_events_url": "https://api.github.com/users/danger/received_events", "type": "Organization", "site_admin": false }, "repo": { "id": 60424063, "node_id": "MDEwOlJlcG9zaXRvcnk2MDQyNDA2Mw==", "name": "danger-plugin-template", "full_name": "danger/danger-plugin-template", "private": false, "owner": { "login": "danger", "id": 17147106, "node_id": "MDEyOk9yZ2FuaXphdGlvbjE3MTQ3MTA2", "avatar_url": "https://avatars.githubusercontent.com/u/17147106?v=4", "gravatar_id": "", "url": "https://api.github.com/users/danger", "html_url": "https://github.com/danger", "followers_url": "https://api.github.com/users/danger/followers", "following_url": "https://api.github.com/users/danger/following{/other_user}", "gists_url": "https://api.github.com/users/danger/gists{/gist_id}", "starred_url": "https://api.github.com/users/danger/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/danger/subscriptions", "organizations_url": "https://api.github.com/users/danger/orgs", "repos_url": "https://api.github.com/users/danger/repos", "events_url": "https://api.github.com/users/danger/events{/privacy}", "received_events_url": "https://api.github.com/users/danger/received_events", "type": "Organization", "site_admin": false }, "html_url": "https://github.com/danger/danger-plugin-template", "description": "An opinionated template for creating a Danger plugin", "fork": false, "url": "https://api.github.com/repos/danger/danger-plugin-template", "forks_url": "https://api.github.com/repos/danger/danger-plugin-template/forks", "keys_url": "https://api.github.com/repos/danger/danger-plugin-template/keys{/key_id}", "collaborators_url": "https://api.github.com/repos/danger/danger-plugin-template/collaborators{/collaborator}", "teams_url": "https://api.github.com/repos/danger/danger-plugin-template/teams", "hooks_url": "https://api.github.com/repos/danger/danger-plugin-template/hooks", "issue_events_url": "https://api.github.com/repos/danger/danger-plugin-template/issues/events{/number}", "events_url": "https://api.github.com/repos/danger/danger-plugin-template/events", "assignees_url": "https://api.github.com/repos/danger/danger-plugin-template/assignees{/user}", "branches_url": "https://api.github.com/repos/danger/danger-plugin-template/branches{/branch}", "tags_url": "https://api.github.com/repos/danger/danger-plugin-template/tags", "blobs_url": "https://api.github.com/repos/danger/danger-plugin-template/git/blobs{/sha}", "git_tags_url": "https://api.github.com/repos/danger/danger-plugin-template/git/tags{/sha}", "git_refs_url": "https://api.github.com/repos/danger/danger-plugin-template/git/refs{/sha}", "trees_url": "https://api.github.com/repos/danger/danger-plugin-template/git/trees{/sha}", "statuses_url": "https://api.github.com/repos/danger/danger-plugin-template/statuses/{sha}", "languages_url": "https://api.github.com/repos/danger/danger-plugin-template/languages", "stargazers_url": "https://api.github.com/repos/danger/danger-plugin-template/stargazers", "contributors_url": "https://api.github.com/repos/danger/danger-plugin-template/contributors", "subscribers_url": "https://api.github.com/repos/danger/danger-plugin-template/subscribers", "subscription_url": "https://api.github.com/repos/danger/danger-plugin-template/subscription", "commits_url": "https://api.github.com/repos/danger/danger-plugin-template/commits{/sha}", "git_commits_url": "https://api.github.com/repos/danger/danger-plugin-template/git/commits{/sha}", "comments_url": "https://api.github.com/repos/danger/danger-plugin-template/comments{/number}", "issue_comment_url": "https://api.github.com/repos/danger/danger-plugin-template/issues/comments{/number}", "contents_url": "https://api.github.com/repos/danger/danger-plugin-template/contents/{+path}", "compare_url": "https://api.github.com/repos/danger/danger-plugin-template/compare/{base}...{head}", "merges_url": "https://api.github.com/repos/danger/danger-plugin-template/merges", "archive_url": "https://api.github.com/repos/danger/danger-plugin-template/{archive_format}{/ref}", "downloads_url": "https://api.github.com/repos/danger/danger-plugin-template/downloads", "issues_url": "https://api.github.com/repos/danger/danger-plugin-template/issues{/number}", "pulls_url": "https://api.github.com/repos/danger/danger-plugin-template/pulls{/number}", "milestones_url": "https://api.github.com/repos/danger/danger-plugin-template/milestones{/number}", "notifications_url": "https://api.github.com/repos/danger/danger-plugin-template/notifications{?since,all,participating}", "labels_url": "https://api.github.com/repos/danger/danger-plugin-template/labels{/name}", "releases_url": "https://api.github.com/repos/danger/danger-plugin-template/releases{/id}", "deployments_url": "https://api.github.com/repos/danger/danger-plugin-template/deployments", "created_at": "2016-06-04T18:17:02Z", "updated_at": "2021-10-27T08:26:48Z", "pushed_at": "2022-09-04T13:16:52Z", "git_url": "git://github.com/danger/danger-plugin-template.git", "ssh_url": "git@github.com:danger/danger-plugin-template.git", "clone_url": "https://github.com/danger/danger-plugin-template.git", "svn_url": "https://github.com/danger/danger-plugin-template", "homepage": null, "size": 42, "stargazers_count": 19, "watchers_count": 19, "language": "Ruby", "has_issues": true, "has_projects": true, "has_downloads": true, "has_wiki": true, "has_pages": false, "has_discussions": false, "forks_count": 12, "mirror_url": null, "archived": false, "disabled": false, "open_issues_count": 2, "license": { "key": "other", "name": "Other", "spdx_id": "NOASSERTION", "url": null, "node_id": "MDc6TGljZW5zZTA=" }, "allow_forking": true, "is_template": false, "web_commit_signoff_required": false, "topics": [], "visibility": "public", "forks": 12, "open_issues": 2, "watchers": 19, "default_branch": "master" } }, "_links": { "self": { "href": "https://api.github.com/repos/danger/danger-plugin-template/pulls/18" }, "html": { "href": "https://github.com/danger/danger-plugin-template/pull/18" }, "issue": { "href": "https://api.github.com/repos/danger/danger-plugin-template/issues/18" }, "comments": { "href": "https://api.github.com/repos/danger/danger-plugin-template/issues/18/comments" }, "review_comments": { "href": "https://api.github.com/repos/danger/danger-plugin-template/pulls/18/comments" }, "review_comment": { "href": "https://api.github.com/repos/danger/danger-plugin-template/pulls/comments{/number}" }, "commits": { "href": "https://api.github.com/repos/danger/danger-plugin-template/pulls/18/commits" }, "statuses": { "href": "https://api.github.com/repos/danger/danger-plugin-template/statuses/abe89bee0cdc5f45b1dee62c60e74c70f3fcb5d5" } }, "author_association": "CONTRIBUTOR", "auto_merge": null, "active_lock_reason": null, "merged": true, "mergeable": null, "rebaseable": null, "mergeable_state": "unknown", "merged_by": { "login": "orta", "id": 49038, "node_id": "MDQ6VXNlcjQ5MDM4", "avatar_url": "https://avatars.githubusercontent.com/u/49038?v=4", "gravatar_id": "", "url": "https://api.github.com/users/orta", "html_url": "https://github.com/orta", "followers_url": "https://api.github.com/users/orta/followers", "following_url": "https://api.github.com/users/orta/following{/other_user}", "gists_url": "https://api.github.com/users/orta/gists{/gist_id}", "starred_url": "https://api.github.com/users/orta/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/orta/subscriptions", "organizations_url": "https://api.github.com/users/orta/orgs", "repos_url": "https://api.github.com/users/orta/repos", "events_url": "https://api.github.com/users/orta/events{/privacy}", "received_events_url": "https://api.github.com/users/orta/received_events", "type": "User", "site_admin": false }, "comments": 2, "review_comments": 0, "maintainer_can_modify": false, "commits": 2, "additions": 5, "deletions": 0, "changed_files": 1 }