You can search for issues and pull requests globally across all of GitHub Enterprise Server, or search for issues and pull requests within a particular organization. For more information, see "About searching on GitHub."
Tips:
-
This article contains example searches on the GitHub.com website, but you can use the same search filters on your GitHub Enterprise Server instance.
-
For a list of search syntaxes that you can add to any search qualifier to further improve your results, see "Understanding the search syntax".
-
Use quotations around multi-word search terms. For example, if you want to search for issues with the label "In progress," you'd search for
label:"in progress". Search is not case sensitive. -
You can focus your cursor on the search bar above the issue or pull request list with a keyboard shortcut. For more information, see "Keyboard shortcuts."
Search only issues or pull requests
By default, GitHub Enterprise Server search will return both issues and pull requests. However, you can restrict search results to just issues or pull requests using the type or is qualifier.
| Qualifier | Example |
|---|---|
type:pr | cat type:pr matches pull requests with the word "cat." |
type:issue | github commenter:defunkt type:issue matches issues that contain the word "github," and have a comment by @defunkt. |
is:pr | event is:pr matches pull requests with the word "event." |
is:issue | is:issue label:bug is:closed matches closed issues with the label "bug." |
Search by the title, body, or comments
With the in qualifier you can restrict your search to the title, body, comments, or any combination of these. When you omit this qualifier, the title, body, and comments are all searched.
| Qualifier | Example |
|---|---|
in:title | warning in:title matches issues with "warning" in their title. |
in:body | error in:title,body matches issues with "error" in their title or body. |
in:comments | shipit in:comments matches issues mentioning "shipit" in their comments. |
Search within a user's or organization's repositories
To search issues and pull requests in all repositories owned by a certain user or organization, you can use the user or org qualifier. To search issues and pull requests in a specific repository, you can use the repo qualifier.
If you have access to pull requests in more than 10,000 repositories, you will need to limit your search to a specific organization, user account, or repository to see results.
| Qualifier | Example |
|---|---|
user:USERNAME | user:defunkt ubuntu matches issues with the word "ubuntu" from repositories owned by @defunkt. |
org:ORGNAME | org:github matches issues in repositories owned by the GitHub organization. |
repo:USERNAME/REPOSITORY | repo:mozilla/shumway created:<2012-03-01 matches issues from @mozilla's shumway project that were created before March 2012. |
Search by open or closed state
You can filter issues and pull requests based on whether they're open or closed using the state or is qualifier.
| Qualifier | Example |
|---|---|
state:open | libraries state:open mentions:vmg matches open issues that mention @vmg with the word "libraries." |
state:closed | design state:closed in:body matches closed issues with the word "design" in the body. |
is:open | performance is:open is:issue matches open issues with the word "performance." |
is:closed | android is:closed matches closed issues and pull requests with the word "android." |
Filter by repository visibility
You can filter by the visibility of the repository containing the issues and pull requests using the is qualifier. For more information, see "About repositories."
| Qualifier | Example |
|---|---|
is:public | is:public matches issues and pull requests in public repositories. |
is:internal | is:internal matches issues and pull requests in internal repositories. |
is:private | is:private cupcake matches issues and pull requests that contain the word "cupcake" in private repositories you can access. |
Search by author
The author qualifier finds issues and pull requests created by a certain user or integration account.
| Qualifier | Example |
|---|---|
author:USERNAME | cool author:gjtorikian matches issues and pull requests with the word "cool" that were created by @gjtorikian. |
| bootstrap in:body author:mdo matches issues written by @mdo that contain the word "bootstrap" in the body. | |
author:app/USERNAME | author:app/robot matches issues created by the integration account named "robot." |
Search by assignee
The assignee qualifier finds issues and pull requests that are assigned to a certain user. You cannot search for issues and pull requests that have any assignee, however, you can search for issues and pull requests that have no assignee.
| Qualifier | Example |
|---|---|
assignee:USERNAME | assignee:vmg repo:libgit2/libgit2 matches issues and pull requests in libgit2's project libgit2 that are assigned to @vmg. |
Search by mention
The mentions qualifier finds issues that mention a certain user. For more information, see "Mentioning people and teams."
| Qualifier | Example |
|---|---|
mentions:USERNAME | resque mentions:defunkt matches issues with the word "resque" that mention @defunkt. |
Search by team mention
For organizations and teams you belong to, you can use the team qualifier to find issues or pull requests that @mention a certain team within that organization. Replace these sample names with your organization and team name to perform a search.
| Qualifier | Example |
|---|---|
team:ORGNAME/TEAMNAME | team:jekyll/owners matches issues where the @jekyll/owners team is mentioned. |
team:myorg/ops is:open is:pr matches open pull requests where the @myorg/ops team is mentioned. |
Search by commenter
The commenter qualifier finds issues that contain a comment from a certain user.
| Qualifier | Example |
|---|---|
commenter:USERNAME | github commenter:defunkt org:github matches issues in repositories owned by GitHub, that contain the word "github," and have a comment by @defunkt. |
Search by a user that's involved in an issue or pull request
You can use the involves qualifier to find issues that in some way involve a certain user. The involves qualifier is a logical OR between the author, assignee, mentions, and commenter qualifiers for a single user. In other words, this qualifier finds issues and pull requests that were either created by a certain user, assigned to that user, mention that user, or were commented on by that user.
| Qualifier | Example |
|---|---|
involves:USERNAME | involves:defunkt involves:jlord matches issues either @defunkt or @jlord are involved in. |
| NOT bootstrap in:body involves:mdo matches issues @mdo is involved in that do not contain the word "bootstrap" in the body. |
Search for linked issues and pull requests
You can narrow your results to only include issues that are linked to a pull request by a closing reference, or pull requests that are linked to an issue that the pull request may close.
| Qualifier | Example |
|---|---|
linked:pr | repo:desktop/desktop is:open linked:pr matches open issues in the desktop/desktop repository that are linked to a pull request by a closing reference. |