UNPKG

pullhub

Version:

Get pull requests from one or more repos filtered by labels

143 lines (142 loc) 6.96 kB
[ { "url": "https://api.github.com/repos/johndoe/somerepo/issues/466", "repository_url": "https://api.github.com/repos/johndoe/somerepo", "labels_url": "https://api.github.com/repos/johndoe/somerepo/issues/466/labels{/name}", "comments_url": "https://api.github.com/repos/johndoe/somerepo/issues/466/comments", "events_url": "https://api.github.com/repos/johndoe/somerepo/issues/466/events", "html_url": "https://github.com/johndoe/somerepo/pull/466", "id": 196374651, "number": 466, "title": "Refactor some code", "user": { "login": "johndoe", "id": 2973056, "avatar_url": "https://avatars2.githubusercontent.com/u/0000000?v=3", "gravatar_id": "", "url": "https://api.github.com/users/johndoe", "html_url": "https://github.com/johndoe", "followers_url": "https://api.github.com/users/johndoe/followers", "following_url": "https://api.github.com/users/johndoe/following{/other_user}", "gists_url": "https://api.github.com/users/johndoe/gists{/gist_id}", "starred_url": "https://api.github.com/users/johndoe/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/johndoe/subscriptions", "organizations_url": "https://api.github.com/users/johndoe/orgs", "repos_url": "https://api.github.com/users/johndoe/repos", "events_url": "https://api.github.com/users/johndoe/events{/privacy}", "received_events_url": "https://api.github.com/users/johndoe/received_events", "type": "User", "site_admin": false }, "labels": [ {} ], "state": "open", "locked": false, "assignee": null, "assignees": [], "milestone": null, "comments": 2, "created_at": "2016-12-19T10:06:04Z", "updated_at": "2017-03-14T12:31:48Z", "closed_at": null, "pull_request": { "url": "https://api.github.com/repos/johndoe/somerepo/pulls/466", "html_url": "https://github.com/johndoe/somerepo/pull/466", "diff_url": "https://github.com/johndoe/somerepo/pull/466.diff", "patch_url": "https://github.com/johndoe/somerepo/pull/466.patch" }, "body": "Change `that file` with some method.\r\n\r\nIssue #453" }, { "url": "https://api.github.com/repos/johndoe/somerepo/issues/467", "repository_url": "https://api.github.com/repos/johndoe/somerepo", "labels_url": "https://api.github.com/repos/johndoe/somerepo/issues/467/labels{/name}", "comments_url": "https://api.github.com/repos/johndoe/somerepo/issues/467/comments", "events_url": "https://api.github.com/repos/johndoe/somerepo/issues/467/events", "html_url": "https://github.com/johndoe/somerepo/pull/467", "id": 196374652, "number": 467, "title": "Refactor some code 2", "user": { "login": "johndoe", "id": 2973056, "avatar_url": "https://avatars2.githubusercontent.com/u/0000000?v=3", "gravatar_id": "", "url": "https://api.github.com/users/johndoe", "html_url": "https://github.com/johndoe", "followers_url": "https://api.github.com/users/johndoe/followers", "following_url": "https://api.github.com/users/johndoe/following{/other_user}", "gists_url": "https://api.github.com/users/johndoe/gists{/gist_id}", "starred_url": "https://api.github.com/users/johndoe/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/johndoe/subscriptions", "organizations_url": "https://api.github.com/users/johndoe/orgs", "repos_url": "https://api.github.com/users/johndoe/repos", "events_url": "https://api.github.com/users/johndoe/events{/privacy}", "received_events_url": "https://api.github.com/users/johndoe/received_events", "type": "User", "site_admin": false }, "labels": [ {} ], "state": "open", "locked": false, "assignee": null, "assignees": [], "milestone": null, "comments": 2, "created_at": "2016-12-19T15:06:04Z", "updated_at": "2017-03-14T18:31:48Z", "closed_at": null, "pull_request": { "url": "https://api.github.com/repos/johndoe/somerepo/pulls/467", "html_url": "https://github.com/johndoe/somerepo/pull/467", "diff_url": "https://github.com/johndoe/somerepo/pull/467.diff", "patch_url": "https://github.com/johndoe/somerepo/pull/467.patch" }, "body": "Change `that file` with some method.\r\n\r\nIssue #459" }, { "url": "https://api.github.com/repos/johndoe/somerepo/issues/468", "repository_url": "https://api.github.com/repos/johndoe/somerepo", "labels_url": "https://api.github.com/repos/johndoe/somerepo/issues/468/labels{/name}", "comments_url": "https://api.github.com/repos/johndoe/somerepo/issues/468/comments", "events_url": "https://api.github.com/repos/johndoe/somerepo/issues/468/events", "html_url": "https://github.com/johndoe/somerepo/pull/468", "id": 196374654, "number": 468, "title": "This is an issue", "user": { "login": "johndoe", "id": 2973056, "avatar_url": "https://avatars2.githubusercontent.com/u/0000000?v=3", "gravatar_id": "", "url": "https://api.github.com/users/johndoe", "html_url": "https://github.com/johndoe", "followers_url": "https://api.github.com/users/johndoe/followers", "following_url": "https://api.github.com/users/johndoe/following{/other_user}", "gists_url": "https://api.github.com/users/johndoe/gists{/gist_id}", "starred_url": "https://api.github.com/users/johndoe/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/johndoe/subscriptions", "organizations_url": "https://api.github.com/users/johndoe/orgs", "repos_url": "https://api.github.com/users/johndoe/repos", "events_url": "https://api.github.com/users/johndoe/events{/privacy}", "received_events_url": "https://api.github.com/users/johndoe/received_events", "type": "User", "site_admin": false }, "labels": [ {} ], "state": "open", "locked": false, "assignee": null, "assignees": [], "milestone": null, "comments": 2, "created_at": "2016-12-19T10:06:04Z", "updated_at": "2017-03-14T12:31:48Z", "closed_at": null, "body": "Issue body" } ]