GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

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

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

gh pr list [flags]

List pull requests in a GitHub repository.

The search query syntax is documented here: https://docs.github.com/en/search-github/searching-on-github/searching-issues-and-pull-requests ⟨https://docs.github.com/en/search-github/searching-on-github/searching-issues-and-pull-requests⟩

--app <string>
Filter by GitHub App author

-a, --assignee <string>
Filter by assignee

-A, --author <string>
Filter by author

-B, --base <string>
Filter by base branch

-d, --draft
Filter by draft state

-H, --head <string>
Filter by head branch

-q, --jq <expression>
Filter JSON output using a jq expression

--json <fields>
Output JSON with the specified fields

-l, --label <strings>
Filter by label

-L, --limit <int>
Maximum number of items to fetch

-S, --search <query>
Search pull requests with query

-s, --state <string>
Filter by state: {open|closed|merged|all}

-t, --template <string>
Format JSON output using a Go template

-w, --web
List pull requests in the web browser

-R, --repo <[HOST/]OWNER/REPO>
Select another repository using the [HOST/]OWNER/REPO format

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 "<SHA>" --state merged
 	

gh-pr(1)
May 2022

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.