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 2022 GitHub CLI manual