OS Manuals

gh-pr(1)

gh-pr - Manage pull requests

GH-PR(1) GitHub CLI manual GH-PR(1)

gh-pr - Manage pull requests

gh pr <command> [flags]

Work with GitHub pull requests.

Create a pull request

List pull requests in a repository

Show status of relevant pull requests

Check out a pull request in git

Show CI status for a single pull request

Close a pull request

Add a comment to a pull request

View changes in a pull request

Edit a pull request

Lock pull request conversation

Merge a pull request

Mark a pull request as ready for review

Reopen a pull request

Revert a pull request

Add a review to a pull request

Unlock pull request conversation

Update a pull request branch

View a pull request

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

0: Successful execution

1: Error

2: Command canceled

4: Authentication required

NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information.

$ gh pr checkout 353
$ gh pr create --fill
$ gh pr view --web

gh(1)

Oct 2026

gh 2.103.3-r0 · os · ingested 2026-10-28