.nh .TH "GT-PR" "1" "Nov 2026" "gitea-cli" "gitea-cli Manual" .SH NAME gt-pr - Manage pull requests .SH SYNOPSIS \fBgt pr [flags]\fP .SH DESCRIPTION Work with Gitea pull requests: list, view, create, review, check out and merge them. .PP Commands that act on one pull request take a number, a URL or a branch name, and without one select the pull request of the current branch. pr attachment takes a number or a URL. .SS ARGUMENTS .EX A pull request can be supplied as argument in any of the following formats: - by number, such as "13" or "#13" - by URL, such as "https://gitea.com/OWNER/REPO/pulls/13" - by the name of its head branch, such as "feature/login" or "bob:feature/login"; a branch that reads as OWNER/REPO#N, such as "fix/login#2", needs the OWNER:BRANCH form Without an argument, the pull request of the current branch is selected. .EE .SH OPTIONS \fB-h\fP, \fB--help\fP[=false] help for pr .SH OPTIONS INHERITED FROM PARENT COMMANDS \fB--cwd\fP="" Working \fBdirectory\fR for repository discovery .PP \fB--debug\fP[=false] Log the method, URL, status, and duration of each HTTP request to stderr .PP \fB--host\fP="" Gitea instance \fBURL\fR, including any base path .PP \fB--interactive\fP[=false] Allow prompts with machine output .PP \fB--no-input\fP[=false] Disable prompts and implicit editor/browser interactions .PP \fB--remote\fP="" Git \fBremote\fR used for repository discovery .PP \fB-R\fP, \fB--repo\fP="" Select a repository as \fBOWNER/REPO\fR or URL .PP \fB--sudo\fP="" Perform API requests as this \fBuser\fR (requires an administrator account) .PP \fB--user\fP="" Account \fBname\fR on the selected instance .SH EXAMPLE .EX $ gt pr list --author @me $ gt pr create --fill $ gt pr merge --squash --delete-branch .EE .SH SEE ALSO \fBgt(1)\fP, \fBgt-pr-attachment(1)\fP, \fBgt-pr-backport(1)\fP, \fBgt-pr-checkout(1)\fP, \fBgt-pr-checks(1)\fP, \fBgt-pr-clean(1)\fP, \fBgt-pr-close(1)\fP, \fBgt-pr-comment(1)\fP, \fBgt-pr-create(1)\fP, \fBgt-pr-diff(1)\fP, \fBgt-pr-edit(1)\fP, \fBgt-pr-list(1)\fP, \fBgt-pr-merge(1)\fP, \fBgt-pr-ready(1)\fP, \fBgt-pr-reopen(1)\fP, \fBgt-pr-review(1)\fP, \fBgt-pr-status(1)\fP, \fBgt-pr-timeline(1)\fP, \fBgt-pr-update-branch(1)\fP, \fBgt-pr-view(1)\fP