Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: get all Pr that are waiting for review from one specific user #858

Closed
cpanato opened this issue Mar 1, 2018 · 2 comments
Closed
Labels

Comments

@cpanato
Copy link
Contributor

cpanato commented Mar 1, 2018

Hello, I was checking the code and did not find a filter or an API call that returns all pending review from one specific user.

in the UI we can use the filter: is:open is:pr review-requested:USERNAME

I tried to set the PullRequestListOptions but did not work :/

is that possible? or do I need to get all the PRs and then iterate using the ListReviewers?

thanks so much

@dmitshur
Copy link
Member

dmitshur commented Mar 21, 2018

This is possible via the search issues endpoint:

https://developer.github.com/v3/search/#search-issues
https://godoc.org/github.com/google/go-github/github#SearchService.Issues

You’d need to set the search query to is:open is:pr review-requested:USERNAME.

@cpanato
Copy link
Contributor Author

cpanato commented Mar 21, 2018

thanks!

@cpanato cpanato closed this as completed Mar 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants