GH-PR-LIST(1) GitHub CLI manual GH-PR-LIST(1) NAME gh-pr-list - List pull requests in a repository SYNOPSIS gh pr list [flags] DESCRIPTION List pull requests in a GitHub repository. The search query syntax is documented here: OPTIONS --app Filter by GitHub App author -a, --assignee Filter by assignee -A, --author Filter by author -B, --base Filter by base branch -d, --draft Filter by draft state -H, --head Filter by head branch -q, --jq Filter JSON output using a jq expression --json Output JSON with the specified fields -l, --label Filter by label -L, --limit (default 30) Maximum number of items to fetch -S, --search Search pull requests with query -s, --state (default "open") Filter by state: {open|closed|merged|all} -t, --template Format JSON output using a Go template; see "gh help formatting" -w, --web List pull requests in the web browser OPTIONS INHERITED FROM PARENT COMMANDS -R, --repo <[HOST/]OWNER/REPO> Select another repository using the [HOST/]OWNER/REPO format JSON FIELDS additions, assignees, author, autoMergeRequest, baseRefName, body, changedFiles, closed, closedAt, comments, commits, createdAt, deletions, files, 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 EXAMPLE List PRs authored by you $ gh pr list --author "@me" 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 "" --state merged SEE ALSO gh-pr(1) May 2024 GH-PR-LIST(1)