Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In Github, is there a way to search for pull requests created by any author from a provided list?

Tags:

For my team's weekly builds, I go through all pull requests from the company Github and pull out the pr's associated to my team. This requires an annoying sieving step that requires a walk-through of the company's previous week of code contribution.

I looked at the official Github search documentation (HERE) and found the "author" field could be used to narrow down the search in the way I want, but it only works on one author at a time.

Is there a way to search across a list of authors?

For a little extra context, my team operates across a large list of repos, all of which are under a blanket organization which houses all repos across the company.

Update: I was using the github.com/pulls page which does not follow the same syntax conventions as github.com/search. Thank you T0xicCode for working through this with me.

like image 402
Shadoninja Avatar asked Apr 05 '16 17:04

Shadoninja


People also ask

How do I find a specific pull request on GitHub?

Open TerminalTerminalGit Bash. Fetch the reference to the pull request based on its ID number, creating a new branch in the process. At this point, you can do anything you want with this branch. You can run some local tests, or merge other branches into the branch.


2 Answers

First off make sure that you are using the full search at https://github.com/search. Otherwise the search syntax will be severely limited.

Simply add extra author: <name> fields to your query. The searching engine will OR fields.

To limit it to repositories by a specific owner, add the user: <owner> field to the query.

like image 62
T0xicCode Avatar answered Oct 06 '22 21:10

T0xicCode


Using the route github.com/search instead of github.com/pulls is the "right" answer in some sense, but I like the format of the /pulls page better. When working in a small team my approach is to use /pulls but substitute "involves" for "author", like this (for reference, the same query using /search and "author").

You will get "extra" hits where the author is someone outside the list, but it's another trick to know. (Names in the examples picked at random from recent public PRs)

like image 41
smolin Avatar answered Oct 06 '22 21:10

smolin