.nh .TH "GH-SEARCH-PRS" "1" "Oct 2022" "" "GitHub CLI manual" .SH NAME .PP gh-search-prs - Search for pull requests .SH SYNOPSIS .PP \fB\fCgh search prs [] [flags]\fR .SH DESCRIPTION .PP Search for pull requests on GitHub. .PP The command supports constructing queries using the GitHub search syntax, using the parameter and qualifier flags, or a combination of the two. .PP GitHub search syntax is documented at: https://docs.github.com/search-github/searching-on-github/searching-issues-and-pull-requests \[la]https://docs.github.com/search-github/searching-on-github/searching-issues-and-pull-requests\[ra] .SH OPTIONS .TP \fB\fC--app\fR \fB\fC\fR Filter by GitHub App author .TP \fB\fC--archived\fR Restrict search to archived repositories .TP \fB\fC--assignee\fR \fB\fC\fR Filter by assignee .TP \fB\fC--author\fR \fB\fC\fR Filter by author .TP \fB\fC-B\fR, \fB\fC--base\fR \fB\fC\fR Filter on base branch name .TP \fB\fC--checks\fR \fB\fC\fR Filter based on status of the checks: {pending|success|failure} .TP \fB\fC--closed\fR \fB\fC\fR Filter on closed at date .TP \fB\fC--commenter\fR \fB\fC\fR Filter based on comments by user .TP \fB\fC--comments\fR \fB\fC\fR Filter on number of comments .TP \fB\fC--created\fR \fB\fC\fR Filter based on created at date .TP \fB\fC--draft\fR Filter based on draft state .TP \fB\fC-H\fR, \fB\fC--head\fR \fB\fC\fR Filter on head branch name .TP \fB\fC--interactions\fR \fB\fC\fR Filter on number of reactions and comments .TP \fB\fC--involves\fR \fB\fC\fR Filter based on involvement of user .TP \fB\fC-q\fR, \fB\fC--jq\fR \fB\fC\fR Filter JSON output using a jq expression .TP \fB\fC--json\fR \fB\fC\fR Output JSON with the specified fields .TP \fB\fC--label\fR \fB\fC\fR Filter on label .TP \fB\fC--language\fR \fB\fC\fR Filter based on the coding language .TP \fB\fC-L\fR, \fB\fC--limit\fR \fB\fC\fR Maximum number of results to fetch .TP \fB\fC--locked\fR Filter on locked conversation status .TP \fB\fC--match\fR \fB\fC\fR Restrict search to specific field of issue: {title|body|comments} .TP \fB\fC--mentions\fR \fB\fC\fR Filter based on user mentions .TP \fB\fC--merged\fR Filter based on merged state .TP \fB\fC--merged-at\fR \fB\fC\fR Filter on merged at date .TP \fB\fC--milestone\fR \fB\fC\fR Filter by milestone title .TP \fB\fC--no-assignee\fR Filter on missing assignee .TP \fB\fC--no-label\fR Filter on missing label .TP \fB\fC--no-milestone\fR Filter on missing milestone .TP \fB\fC--no-project\fR Filter on missing project .TP \fB\fC--order\fR \fB\fC<string>\fR Order of results returned, ignored unless '--sort' flag is specified: {asc|desc} .TP \fB\fC--owner\fR \fB\fC<string>\fR Filter on repository owner .TP \fB\fC--project\fR \fB\fC<number>\fR Filter on project board number .TP \fB\fC--reactions\fR \fB\fC<number>\fR Filter on number of reactions .TP \fB\fC--repo\fR \fB\fC<strings>\fR Filter on repository .TP \fB\fC--review\fR \fB\fC<string>\fR Filter based on review status: {none|required|approved|changes_requested} .TP \fB\fC--review-requested\fR \fB\fC<user>\fR Filter on user or team requested to review .TP \fB\fC--reviewed-by\fR \fB\fC<user>\fR Filter on user who reviewed .TP \fB\fC--sort\fR \fB\fC<string>\fR Sort fetched results: {comments|reactions|reactions-+1|reactions--1|reactions-smile|reactions-thinking_face|reactions-heart|reactions-tada|interactions|created|updated} .TP \fB\fC--state\fR \fB\fC<string>\fR Filter based on state: {open|closed} .TP \fB\fC--team-mentions\fR \fB\fC<string>\fR Filter based on team mentions .TP \fB\fC-t\fR, \fB\fC--template\fR \fB\fC<string>\fR Format JSON output using a Go template; see "gh help formatting" .TP \fB\fC--updated\fR \fB\fC<date>\fR Filter on last updated at date .TP \fB\fC--visibility\fR \fB\fC<strings>\fR Filter based on repository visibility: {public|private|internal} .TP \fB\fC-w\fR, \fB\fC--web\fR Open the search query in the web browser .SH EXAMPLE .PP .RS .nf # 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 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 .fi .RE .SH SEE ALSO .PP \fB\fCgh-search(1)\fR