gh-pr-close - Man Page

Close a pull request

Synopsis

gh pr close {<number> | <url> | <branch>} [flags]

Options

-c, --comment <string>

Leave a closing comment

-d, ā€‰--delete-branch

Delete the local and remote branch after close

Options Inherited from Parent Commands

-R, --repo <[HOST/]OWNER/REPO>

Select another repository using the [HOST/]OWNER/REPO format

See Also

gh-pr(1)

Referenced By

gh-pr(1).

Jul 2024 GitHub CLI manual