spotube/gh_2.76.2_macOS_amd64/share/man/man1/gh-pr-close.1

46 lines
772 B
Groff

.nh
.TH "GH-PR-CLOSE" "1" "Jul 2025" "GitHub CLI 2.76.2" "GitHub CLI manual"
.SH NAME
gh-pr-close - Close a pull request
.SH SYNOPSIS
\fBgh pr close {<number> | <url> | <branch>} [flags]\fR
.SH OPTIONS
.TP
\fB-c\fR, \fB--comment\fR \fB<string>\fR
Leave a closing comment
.TP
\fB-d\fR, \fB--delete-branch\fR
Delete the local and remote branch after close
.SH OPTIONS INHERITED FROM PARENT COMMANDS
.TP
\fB-R\fR, \fB--repo\fR \fB<[HOST/]OWNER/REPO>\fR
Select another repository using the [HOST/]OWNER/REPO format
.SH EXIT CODES
0: Successful execution
.PP
1: Error
.PP
2: Command canceled
.PP
4: Authentication required
.PP
NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information.
.SH SEE ALSO
\fBgh-pr(1)\fR