gh pr
Work with GitHub pull requests.
To wait for a pull request on github.com to be reviewed, merged, or closed, use gh event listen instead of polling.
Changes made before the listener starts are not reported, so read the pull request once it is listening.
General commands
Targeted commands
- gh pr checkout
- gh pr checks
- gh pr close
- gh pr comment
- gh pr diff
- gh pr edit
- gh pr lock
- gh pr merge
- gh pr ready
- gh pr reopen
- gh pr revert
- gh pr review
- gh pr unlock
- gh pr update-branch
- gh pr view
Options
-R,--repo <[HOST/]OWNER/REPO>- Select another repository using the [HOST/]OWNER/REPO format
Examples
$ gh pr checkout 353
$ gh pr create --fill
$ gh pr view --web