Hub: Support listing pull requests by owner/author or self

Created on 13 Mar 2019  路  4Comments  路  Source: github/hub

It would be nice if pr list would support listing pull requests by their owner/author (+ A shortcut for listing your own pull requests would be nice too).

feature

Most helpful comment

@mislav We would like this feature as well. CC: @oerling @nezihyigitbasi

All 4 comments

Not a bad idea! But right now this isn't possible in the GitHub API https://developer.github.com/v3/pulls/#parameters

Since I suspect this will be requested more than once, I'll keep this open until GitHub REST API enables this (or we switch to querying GraphQL).

Until then, you can use hub api like so:

hub api graphql -f q='repo:github/hub author:mislav is:pr' -f query='
query ($q: String!, $per_page: Int = 10) {
  search(query: $q, type: ISSUE, first: $per_page) {
    nodes {
      ... on PullRequest {
        number
        title
      }
    }
  }
}
'

https://github.com/github/hub/issues/1815#issuecomment-406532323
https://github.com/github/hub/issues/1807

@mislav We would like this feature as well. CC: @oerling @nezihyigitbasi

is that possible using hub to merge PR to the one of owner in dev branch???

@harmnot I'm not sure what you are asking.

It's generally possible using hub to merge any PR anywhere.

Was this page helpful?
0 / 5 - 0 ratings