Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Copilot Lvl 2
Message 1 of 3

Is there a way to get a list of all open PRs across all repositories under a team?

I have searched quite a bit, and while I have seen the various search capabilities of https://help.github.com/en/github/searching-for-information-on-github/searching-issues-and-pull-requ... - I haven't beeen able to find a way to get a list of open PRs across the many repositories that belong to my team.  Does this exist?

2 Replies
Highlighted
Copilot Lvl 3
Message 2 of 3

Re: Is there a way to get a list of all open PRs across all repositories under a team?

Hi!

 

I think the answer to your question is yes.

 

Some time ago I wrote a program that did, among other things, list pull requests (open or closed) on organization level (assigned to you or not). If you want to check how it is done via GitHub's GraphQL API you can have a look at the GraphQL queries in my code, if you intend to write an application or service that does that.

 

If you want to search pull requests via the search field on GitHub webpage, it is possible as well. For example, searching for all open pull requests in the organization "apple" is done with

is:pr user:apple is:open

in the search field.

 

Hope any of these alternatives was of some help!

Highlighted
Copilot Lvl 2
Message 3 of 3

Re: Is there a way to get a list of all open PRs across all repositories under a team?

Thanks - that does work for an organization name, but I am specifically trying to get open PRs for a team (under an organization), filtering it to the entire organization is returning too many results.