Feature request: show created, assigned, mentioned and review requests on the same page

I would like to see all pull requests in the same view.

Looks like I can’t tweak the search to include all created, assigned, mentioned and review requests.

Is it possible?

After playing around it does not seem possible as it does not support an or operator and uses an implicit and operator. I found https://github.com/isaacs/github/issues/660 which has been asking for the ability for quite a while

Hi @ricobl,

Thanks for this feedback! We’re always working to improve GitHub and the GitHub Community Forum, and we consider every suggestion we receive. I’ve logged your feature request in our internal feature request list. Though I can’t guarantee anything or share a timeline for this, I can tell you that it’s been shared with the appropriate teams for consideration.

Cheers!

I’ve been playing with the hub client and the GraphQL search API.

Also found out about the involves operator that includes most occurrences except requested reviews.

This query gets me what I need:

fragment PullRequest on PullRequest {
  number
  title
  permalink
  author { login }
}

query {
  involves: search(query: "is:open is:pr involves:USERNAME", type: ISSUE, first: 100) {
    nodes { ...PullRequest }
  }
  requests: search(query: "is:open is:pr review-requested:USERNAME", type: ISSUE, first: 100) {
    nodes { ...PullRequest }
  }
}

That can be run like this:

hub api graphql -F query=@my-pull.graphql

Leaving this here in case it helps more people.

So instead of using the page I might just use my terminal.

2 Likes

Thanks for posting back the solution!

2 Likes