GH-PR-LIST(1) GitHub CLI manual GH-PR-LIST(1)

# [NAME](#NAME)

gh-pr-list - List pull requests in a repository

# [SYNOPSIS](#SYNOPSIS)

**gh pr list \[flags]**

# [DESCRIPTION](#DESCRIPTION)

List pull requests in a GitHub repository. By default, this only lists open PRs.

The search query syntax is documented here:

⟨https://docs.github.com/en/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⟩

# [OPTIONS](#OPTIONS)

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

Filter by GitHub App author

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

Filter by assignee

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

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

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

Filter by base branch

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

Filter by draft state

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

Filter by head branch (":" syntax not supported)

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

Filter JSON output using a jq expression

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

Output JSON with the specified fields

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

Filter by label

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

Maximum number of items to fetch

[**-S**, **--search** **&lt;query&gt;**](#S)

Search pull requests with query

[**-s**, **--state** **&lt;string&gt; (default "open")**](#s)

Filter by state: {open|closed|merged|all}

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

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

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

List pull requests in the web browser

# [OPTIONS INHERITED FROM PARENT COMMANDS](#OPTIONS_INHERITED_FROM_PARENT_COMMANDS)

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

Select another repository using the \[HOST/]OWNER/REPO format

# [ALIASES](#ALIASES)

gh pr ls

# [JSON FIELDS](#JSON_FIELDS)

**additions**, **assignees**, **author**, **autoMergeRequest**, **baseRefName**, **baseRefOid**, **body**, **changedFiles**, **closed**, **closedAt**, **closingIssuesReferences**, **comments**, **commits**, **createdAt**, **deletions**, **files**, **fullDatabaseId**, **headRefName**, **headRefOid**, **headRepository**, **headRepositoryOwner**, **id**, **isCrossRepository**, **isDraft**, **labels**, **latestReviews**, **maintainerCanModify**, **mergeCommit**, **mergeStateStatus**, **mergeable**, **mergedAt**, **mergedBy**, **milestone**, **number**, **potentialMergeCommit**, **projectCards**, **projectItems**, **reactionGroups**, **reviewDecision**, **reviewRequests**, **reviews**, **state**, **statusCheckRollup**, **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)

```
# List PRs authored by you
$ gh pr list --author "@me"
# List PRs opened by a GitHub App such as Dependabot
$ gh pr list --app dependabot
# List PRs with a specific head branch name
$ gh pr list --head "typo"
# List only PRs with all of the given labels
$ gh pr list --label bug --label "priority 1"
# Filter PRs using search syntax
$ gh pr list --search "status:success review:required"
# Find a PR that introduced a given commit
$ gh pr list --search "<SHA>" --state merged
```

# [SEE ALSO](#SEE_ALSO)

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

Oct 2026

---

Document: gh-pr-list(1) from gh 2.102.0-r2 (Chainguard OS)
Source: https://github.com/cli/cli
