Laurence
Laurence

Reputation: 60048

How can I search GitHub pull requests?

I'm currently viewing a popular GitHub repo. Inside there are over 300 pull requests (100 open, 200 closed).

How can I search these pull requests to see if a particular topic already exists within them?

i.e. I don't want to create some code and submit a pull request if someone has already done a similar pull.


Edit: Alternatively - since I know what file(s) I plan on changing - is it possible to view a specific file on GitHub, and say "Hey. Are there any outstanding pull requests that relate to this specific file?".


Update: GitHub now offers this easily - when browsing a repository the search bar at the top offers to search only the select repo - which makes it much easier to search for what you need.

Upvotes: 24

Views: 15947

Answers (4)

baptx
baptx

Reputation: 3896

I add these informations if it can help someone who finds this discussion via a search engine. You can use GitHub filters.

Search all pull requests: is:pr

Search all open pull requests: is:pr is:open

Search all open pull requests by user: is:pr is:open author:username

Search all open pull requests commented by user: is:pr is:open commenter:username

I did not see the commenter filter documented somewhere or available in the advanced search, I just found it by guessing and it worked.

If you want to search all pull requests talking about a specific feature, you can just add the keyword to the search.

Upvotes: 5

New Alexandria
New Alexandria

Reputation: 7324

Github repo activity search is now very well documented.

e.g. github commenter:defunkt type:issue

Upvotes: 3

Josh Click
Josh Click

Reputation: 2313

Update

Now, the main search bar is used for all searches. You can filter by code/repos/issues/etc on the left. To see pull requests, click the Issues filter.

search image

Upvotes: 10

Vasiliy Ermolovich
Vasiliy Ermolovich

Reputation: 24617

You can find this search form on Issues tab:

Upvotes: 8

Related Questions