Mark C
Mark C

Reputation: 1804

Github: Find PRs where user is a reviewer

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:

Upvotes: 56

Views: 46237

Answers (4)

masterfloda
masterfloda

Reputation: 3038

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

Upvotes: 6

Xavier Haniquaut
Xavier Haniquaut

Reputation: 1043

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).

Upvotes: 5

raner
raner

Reputation: 1295

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

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

Upvotes: 6

Mark C
Mark C

Reputation: 1804

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

Upvotes: 89

Related Questions