{"action":"created","issue":{"url":"https://api.github.com/repos/github/hub/issues/1815","repository_url":"https://api.github.com/repos/github/hub","labels_url":"https://api.github.com/repos/github/hub/issues/1815/labels{/name}","comments_url":"https://api.github.com/repos/github/hub/issues/1815/comments","events_url":"https://api.github.com/repos/github/hub/issues/1815/events","html_url":"https://github.com/github/hub/issues/1815","id":342965312,"node_id":"MDU6SXNzdWUzNDI5NjUzMTI=","number":1815,"title":"hub pr list functionality","user":{"login":"DennisSchiefer","id":1447634,"node_id":"MDQ6VXNlcjE0NDc2MzQ=","avatar_url":"https://avatars0.githubusercontent.com/u/1447634?v=4","gravatar_id":"","url":"https://api.github.com/users/DennisSchiefer","html_url":"https://github.com/DennisSchiefer","followers_url":"https://api.github.com/users/DennisSchiefer/followers","following_url":"https://api.github.com/users/DennisSchiefer/following{/other_user}","gists_url":"https://api.github.com/users/DennisSchiefer/gists{/gist_id}","starred_url":"https://api.github.com/users/DennisSchiefer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DennisSchiefer/subscriptions","organizations_url":"https://api.github.com/users/DennisSchiefer/orgs","repos_url":"https://api.github.com/users/DennisSchiefer/repos","events_url":"https://api.github.com/users/DennisSchiefer/events{/privacy}","received_events_url":"https://api.github.com/users/DennisSchiefer/received_events","type":"User","site_admin":false},"labels":[{"id":17817,"node_id":"MDU6TGFiZWwxNzgxNw==","url":"https://api.github.com/repos/github/hub/labels/feature","name":"feature","color":"1100ff","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-20T03:59:22Z","updated_at":"2018-07-20T08:45:01Z","closed_at":null,"author_association":"NONE","body":"I would love to see the `hub pr list` functionality expanded. In particular, I am looking for the following:\r\n\r\n- filter PRs by author\r\n- retrieve PRs by time (currently it seems only the last X PRs are listed)\r\n- filter PRs by whether it was merged into master or just closed\r\n\r\nI am currently using hub 2.5.0, git 2.18.0"},"comment":{"url":"https://api.github.com/repos/github/hub/issues/comments/406532323","html_url":"https://github.com/github/hub/issues/1815#issuecomment-406532323","issue_url":"https://api.github.com/repos/github/hub/issues/1815","id":406532323,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNjUzMjMyMw==","user":{"login":"mislav","id":887,"node_id":"MDQ6VXNlcjg4Nw==","avatar_url":"https://avatars2.githubusercontent.com/u/887?v=4","gravatar_id":"","url":"https://api.github.com/users/mislav","html_url":"https://github.com/mislav","followers_url":"https://api.github.com/users/mislav/followers","following_url":"https://api.github.com/users/mislav/following{/other_user}","gists_url":"https://api.github.com/users/mislav/gists{/gist_id}","starred_url":"https://api.github.com/users/mislav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mislav/subscriptions","organizations_url":"https://api.github.com/users/mislav/orgs","repos_url":"https://api.github.com/users/mislav/repos","events_url":"https://api.github.com/users/mislav/events{/privacy}","received_events_url":"https://api.github.com/users/mislav/received_events","type":"User","site_admin":true},"created_at":"2018-07-20T08:45:01Z","updated_at":"2018-07-20T08:45:01Z","author_association":"MEMBER","body":"1. Filtering by author was requested before, but it's not supported by the [current API endpoint](https://developer.github.com/v3/pulls/#list-pull-requests) that we use. We would have to switch to using the Search functionality instead. Two workarounds are listed here: https://github.com/github/hub/issues/1807#issuecomment-404326750\r\n\r\n2. <q>Retrieve PRs by time</q> – what do you mean by this?  We support these options:\r\n\t```\r\n\t-o, --sort <SORT_KEY>\r\n\t\tSort displayed issues by \"created\" (default), \"updated\", \"popularity\", or \"long-running\".\r\n\r\n\t-^ --sort-ascending\r\n\t\tSort by ascending dates instead of descending.\r\n\t```\r\n\r\n    <q>it seems only the last X PRs are listed</q> – all PRs are listed unless you pass the `-L|--limit` parameter.\r\n\r\n3. <q>filter PRs by whether it was merged</q> – again, our API endpoint doesn't seem to accept the `--state merged` parameter the same way it supports `--state closed`."}}
{"actor":{"display_login":"mislav"}}