| GT-SEARCH-PR(1) | gitea-cli Manual | GT-SEARCH-PR(1) |
NAME
gt-search-pr - Search pull requests
SYNOPSIS
gt search pr [<query>...] [flags]
DESCRIPTION
Search the pull requests of every repository you can access on the instance, or of one repository with --repo. Words of the query match titles and bodies. Filters combine: a result must match all of them. Several --label names require --repo, as instance-wide search would return pull requests with any of them.
JSON FIELDS
author, body, created_at, id, number, repository, state, title, type, updated_at, url
OPTIONS
--assigned[=false] Assigned to you
-A, --author="" Filter by author; @me for yourself
--authored[=false] Created by you
-h, --help[=false] help for pr
-l, --label=[] Filter by label names; a result must have all of them (several require --repo)
-L, --limit=30 Maximum number of results (1..1000)
--mentioned[=false] Mentioning you
-m, --milestone=[] Filter by milestone titles
--owner="" Search only the repositories of this owner
--page=1 Result page
--review-requested[=false] Requesting your review (instance-wide search)
--reviewed[=false] Reviewed by you (instance-wide search)
--since="" Updated since a date, timestamp, or duration ago
-s, --state="open" Filter by state {open|closed|all}
--team="" Search only the repositories of this organization team (requires --owner)
--until="" Updated before a date, timestamp, or duration ago
OPTIONS INHERITED FROM PARENT COMMANDS
--csv[=""] Output CSV with the specified comma-separated fields, or all fields
--cwd="" Working directory for repository discovery
--debug[=false] Log the method, URL, status, and duration of each HTTP request to stderr
--host="" Gitea instance URL, including any base path
--interactive[=false] Allow prompts with machine output
-q, --jq="" Filter JSON output using a jq expression; implies --json
--json[=""] Output JSON with the specified comma-separated fields, or all fields
--no-input[=false] Disable prompts and implicit editor/browser interactions
--remote="" Git remote used for repository discovery
-R, --repo="" Select a repository as OWNER/REPO or URL
--sudo="" Perform API requests as this user (requires an administrator account)
--user="" Account name on the selected instance
EXAMPLE
$ gt search pr "login error" # Search one repository; its labels and milestones are checked $ gt search pr crash -R alice/project --label bug --milestone v1.0 $ gt search pr --review-requested
SEE ALSO
| Nov 2026 | gitea-cli |