GH-SEARCH-PRS(1) GitHub CLI manual GH-SEARCH-PRS(1)

# [NAME](#NAME)

gh-search-prs - Search for pull requests

# [SYNOPSIS](#SYNOPSIS)

**gh search prs \[&lt;query&gt;] \[flags]**

# [DESCRIPTION](#DESCRIPTION)

Search for pull requests on GitHub.

The command supports constructing queries using the GitHub search syntax, using the parameter and qualifier flags, or a combination of the two.

GitHub search syntax is documented at:

⟨https://docs.github.com/search-github/searching-on-github/searching-issues-and-pull-requests⟩

On supported GitHub hosts, advanced issue search syntax can be used in the **--search** query. For more information about advanced issue search, see:

⟨https://docs.github.com/en/issues/tracking-your-work-with-issues/using-issues/filtering-and-searching-issues-and-pull-requests#building-advanced-filters-for-issues⟩

For more information on handling search queries containing a hyphen, run **gh search --help**.

# [OPTIONS](#OPTIONS)

[**--app** **&lt;string&gt;**](#app)

Filter by GitHub App author

[**--archived**](#archived)

Filter based on the repository archived state {true|false}

[**--assignee** **&lt;string&gt;**](#assignee)

Filter by assignee

[**--author** **&lt;string&gt;**](#author)

Filter by author (use --app to filter by a GitHub App)

[**-B**, **--base** **&lt;string&gt;**](#B)

Filter on base branch name

[**--checks** **&lt;string&gt;**](#checks)

Filter based on status of the checks: {pending|success|failure}

[**--closed** **&lt;date&gt;**](#closed)

Filter on closed at date

[**--commenter** **&lt;user&gt;**](#commenter)

Filter based on comments by user

[**--comments** **&lt;number&gt;**](#comments)

Filter on number of comments

[**--created** **&lt;date&gt;**](#created)

Filter based on created at date

[**--draft**](#draft)

Filter based on draft state

[**-H**, **--head** **&lt;string&gt;**](#H)

Filter on head branch name

[**--interactions** **&lt;number&gt;**](#interactions)

Filter on number of reactions and comments

[**--involves** **&lt;user&gt;**](#involves)

Filter based on involvement of user

[**-q**, **--jq** **&lt;expression&gt;**](#q)

Filter JSON output using a jq expression

[**--json** **&lt;fields&gt;**](#json)

Output JSON with the specified fields

[**--label** **&lt;strings&gt;**](#label)

Filter on label

[**--language** **&lt;string&gt;**](#language)

Filter based on the coding language

[**-L**, **--limit** **&lt;int&gt; (default 30)**](#L)

Maximum number of results to fetch

[**--locked**](#locked)

Filter on locked conversation status

[**--match** **&lt;strings&gt;**](#match)

Restrict search to specific field of issue: {title|body|comments}

[**--mentions** **&lt;user&gt;**](#mentions)

Filter based on user mentions

[**--merged**](#merged)

Filter based on merged state

[**--merged-at** **&lt;date&gt;**](#merged_at)

Filter on merged at date

[**--milestone** **&lt;title&gt;**](#milestone)

Filter by milestone title

[**--no-assignee**](#no_assignee)

Filter on missing assignee

[**--no-label**](#no_label)

Filter on missing label

[**--no-milestone**](#no_milestone)

Filter on missing milestone

[**--no-project**](#no_project)

Filter on missing project

[**--order** **&lt;string&gt; (default "desc")**](#order)

Order of results returned, ignored unless '--sort' flag is specified: {asc|desc}

[**--owner** **&lt;strings&gt;**](#owner)

Filter on repository owner

[**--project** **&lt;owner/number&gt;**](#project)

Filter on project board owner/number

[**--reactions** **&lt;number&gt;**](#reactions)

Filter on number of reactions

[**-R**, **--repo** **&lt;OWNER/REPO&gt;**](#R)

Filter on repository, in OWNER/REPO format

[**--review** **&lt;string&gt;**](#review)

Filter based on review status: {none|required|approved|changes\_requested}

[**--review-requested** **&lt;user&gt;**](#review_requested)

Filter on user or team requested to review

[**--reviewed-by** **&lt;user&gt;**](#reviewed_by)

Filter on user who reviewed

[**--sort** **&lt;string&gt; (default "best-match")**](#sort)

Sort fetched results: {comments|reactions|reactions-+1|reactions--1|reactions-smile|reactions-thinking\_face|reactions-heart|reactions-tada|interactions|created|updated}

[**--state** **&lt;string&gt;**](#state)

Filter based on state: {open|closed}

[**--team-mentions** **&lt;string&gt;**](#team_mentions)

Filter based on team mentions

[**-t**, **--template** **&lt;string&gt;**](#t)

Format JSON output using a Go template; see "gh help formatting"

[**--updated** **&lt;date&gt;**](#updated)

Filter on last updated at date

[**--visibility** **&lt;strings&gt;**](#visibility)

Filter based on repository visibility: {public|private|internal}

[**-w**, **--web**](#w)

Open the search query in the web browser

# [JSON FIELDS](#JSON_FIELDS)

**assignees**, **author**, **authorAssociation**, **body**, **closedAt**, **commentsCount**, **createdAt**, **id**, **isDraft**, **isLocked**, **isPullRequest**, **labels**, **number**, **repository**, **state**, **title**, **updatedAt**, **url**

# [EXIT CODES](#EXIT_CODES)

0: Successful execution

1: Error

2: Command canceled

4: Authentication required

NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information.

# [EXAMPLE](#EXAMPLE)

```
# Search pull requests matching set of keywords "fix" and "bug"
$ gh search prs fix bug
# Search draft pull requests in cli repository
$ gh search prs --repo=cli/cli --draft
# Search pull requests using raw search qualifiers as separate arguments
$ gh search prs is:merged author:monalisa
# Search open pull requests requesting your review
$ gh search prs --review-requested=@me --state=open
# Search merged pull requests assigned to yourself
$ gh search prs --assignee=@me --merged
# Search pull requests with numerous reactions
$ gh search prs --reactions=">100"
# Search pull requests without label "bug"
$ gh search prs -- -label:bug
# Search pull requests only from un-archived repositories (default is all repositories)
$ gh search prs --owner github --archived=false
```

# [SEE ALSO](#SEE_ALSO)

[**gh-search(1)**](/man/os/gh/gh-search.1)

Sep 2026

---

Document: gh-search-prs(1) from gh 2.101.0-r1 (Chainguard OS)
Source: https://github.com/cli/cli
