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.
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.
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.
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)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With