5
votes

In github you can add a number of reviewers. What I'm looking for is, as a user, to list all the pull requests that I'm currently tagged as a reviewer in.

I have looked at the views that's available in the "pull request" link but this don't meet my demands.

For instance if I go to the "Review requested" i get a "No results matched your search"

Is there someone who has a either a nice search query for achieving this?

3

3 Answers

8
votes

Try the link https://github.com/pulls/review-requested, which shows you all Pull Requests that you've been tagged in as a reviewer.

Note that you may have to click the Open or Closed buttons on that page to filter the Pull Requests you wish to see.

The equivalent Github search is: is:open is:pr review-requested:<username> archived:false

3
votes

Unfortunately is is not possible to list all the pull request where you are tagged as a reviewer in one single search.

Primary reason for this is that Github search doesn't support an "OR" operator.

To get list off all pull request you are tagged as a reviewer you need to look at:

  1. All pull request you have been assigned to review.

    Search string: is:open is:pr review-requested:cniesen-kingland

    review-requested:USERNAME matches pull requests where a specific person is requested for review. Requested reviewers are no longer listed in the search results after they review a pull request. If the requested person is on a team that is requested for review, then review requests for that team will also appear in the search results.

  2. All pull request that you reviewed.

    Search string: is:pr reviewed-by:cniesen-kingland

    reviewed-by:USERNAME matches pull requests reviewed by a particular person.

Reference: Github documentation

-1
votes

You can do this via GitHub search by searching for something like:

assignee:bsinky is:pr is:open

That will show you all items you are assigned to that are open PRs.

If you are looking to query the GitHub API for this:

https://api.github.com/search/issues?q=assignee:{username}+is:pr+is:open