Skip to content

How to search and filter issues and pull requests in Github by author

Erica Pisani
Erica Pisani
1 min read
How to search and filter issues and pull requests in Github by author

If you ever find yourself needing to find issues or pull requests created by someone (or a few someones) in Github, here are a few quick tips for how to do that.

First up - when you're looking for an individual, you'll want to use the author tag:

author:<github-username-you're-looking-for>

If you're looking for multiple people (as if you were running an 'or' statement) you can stack them like this:

author:<github-username-1> author:<github-username-2>

It should be noted though that this currently only works at https://github.com/search and not the search field that appears above the page containing the list of issues and pull requests within a repository:

Stacking 'author' queries won't work here!

If you're looking for pull requests that someone created, you'll want to use is:pr:

author:<github-username> is:pr

If it's issues that they've created, then you'll want is:issue:

author:<github-username> is:issue

If it's issues or pull requests that they've participated in, but didn't create, then you'll might want to use the involves keyword. This works as an 'or' between the author, assignee, mentions, and commenter keywords.

Happy searching!


📫
Enjoy this post? Subscribe to be notified when I publish new content!
tips-and-tricks

Comments


Related Posts

Members Public

Git Log's Hidden Gems: Using -S and -L for Powerful Code History Search

Ever needed to track down when a specific piece of code was first introduced in a project? As part of some refactoring I had to do recently, I needed to do just that for a variable on a Django model. I was already familiar with the basic git log command,

Git Log's Hidden Gems: Using -S and -L for Powerful Code History Search
Members Public

Using XOR to write concise conditionals

It's not uncommon that I sometimes write if statements where the overall conditional is true when both conditions are true or both are false. As an example, let's say I'm validating input from an API call where I'm updating information on a

Members Public

Fixing "No preset version installed for command poetry"

Poetry is a packaging and dependency management tool for Python, and a tool that didn't exist when I worked with Python many years before I started working at Float. I also hadn't been exposed to asdf, which is a handy little tool for managing multiple runtimes.