Skip to content

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

Answered by ricobl
ricobl asked this question in New to GitHub
Discussion options

You must be logged in to vote

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…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants