Github: Find PRs where user is a reviewer

32.4k views Asked by At

Github added reviewers.

Is there a way to find PRs (e.g. on the Pull Requests page) where the user is a reviewer? Things I have already tried:

  • Checked https://help.github.com/articles/searching-issues/ for a filter:

    None found

  • Tested potential filters reviewer:{{user}}, review:{{user}}

    No PRs returned

  • Tested the involved:{{user}} filter

    PRs with the user as only a reviewer are not shown in results.

4

There are 4 answers

3
Mark C On BEST ANSWER

As of 2017-01-23, Github have added this functionality.

Search

You can filter pull requests based their review status (none, required, approved, changes requested, or required), by reviewer, and by requested reviewer. For example:

type:pr review:none Matches pull requests that have not been reviewed.

type:pr review:required Matches pull requests that require a review before they can be merged.

type:pr review:approved Matches pull requests that a reviewer has approved.

type:pr review:changes_requested Matches pull requests in which a reviewer has asked for changes.

type:pr reviewed-by:gjtorikian Matches pull requests reviewed by a particular person.

type:pr review-requested:benbalter Matches pull requests a particular person has been asked to review.

Personal PRs

A new tab can be seen on personal PR page https://github.com/pulls

Project PRs (e.g. Symfony)

A new filter can be seen on the project PR page e.g. https://github.com/symfony/symfony/pulls

0
masterfloda On

I just came across this, because I wanted to search for PRs that got a review from a specific user.

is:pr reviewed-by:USERNAME

Source https://docs.github.com/en/issues/tracking-your-work-with-issues/filtering-and-searching-issues-and-pull-requests

Filter pull requests by reviewer: state:open type:pr reviewed-by:octocat

3
raner On

It looks like the easiest way, nowadays, to get this information, is to simply navigate to:

https://github.com/pulls/review-requested

1
Xavier Haniquaut On

You have now also access to is:open is:pr user-review-requested:@me that is a little different from the others because it will only filter the PRs you are explicitly asked as a reviewer (team review dont count).