GH-PR(1)
π NAME
Okay so bestie, gh-pr is literally your main character moment for Managing pull requests β like, the whole PR vibe, handled. π
(This is the GitHub CLI manual, btw β gh's PR corner of the world. β¨)
β¨ SYNOPSIS
gh pr <command> [flags]
That's it. gh pr, then whatever command your heart desires, then whatever flags you wanna sprinkle on top. Simple slay. π
π¦ DESCRIPTION
Work with GitHub pull requests. That's the whole assignment. Pull requests! On GitHub! From your terminal! Ngl it's giving productivity icon. π
π GENERAL COMMANDS
These are the big three β the ones you'll be living in fr fr:
gh-pr-create(1)β makes a brand new pull request β¨gh-pr-list(1)β shows you all the pull requests chillin' in a repository ποΈgh-pr-status(1)β shows the status of the pull requests that actually matter to you rn π
π― TARGETED COMMANDS
Now the "you already know which PR you're after" squad β the targeted ones, iykyk π:
gh-pr-checkout(1)β checks out a pull request in git, so you can ~be~ the branch π§gh-pr-checks(1)β shows the CI status for one single pull request (green or bust π)gh-pr-close(1)β closes a pull request, bye bestie πgh-pr-comment(1)β drops a comment on a pull request π¬gh-pr-diff(1)β lets you view the changes in a pull request πgh-pr-edit(1)β edits a pull request, glow-up szn βοΈgh-pr-lock(1)β locks the pull request conversation πgh-pr-merge(1)β merges a pull request, the moment we've all been waiting for πgh-pr-ready(1)β marks a pull request as ready for review βgh-pr-reopen(1)β reopens a pull request, it's back π«gh-pr-revert(1)β reverts a pull request, undo era πgh-pr-review(1)β adds a review to a pull request π«Άgh-pr-unlock(1)β unlocks the pull request conversation πgh-pr-update-branch(1)β updates a pull request branch πgh-pr-view(1)β views a pull request, the classic π
π OPTIONS
-R,--repo <[HOST/]OWNER/REPO>β picks a different repository, using the[HOST/]OWNER/REPOformat. Not your usual repo? Not a problem, just point at the right one π«‘
π₯ EXIT CODES
Like, how did it go? The numbers tell you:
0β Successful execution π (slay)1β Error π2β Command canceled π4β Authentication required β like, who even are you rn, log in π
NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information. (Basically: check that specific command's help, bestie, don't come for me. π )
πΈ EXAMPLE
Here's the vibe in action:
$ gh pr checkout 353
$ gh pr create --fill
$ gh pr view --web
Check out PR 353, create one with --fill, then peek at it straight in the browser with --web. Chef's kiss. π¨βπ³π
π SEE ALSO
gh(1)β the mothership πΈ
Okay that's the whole page, bestie β GitHub CLI version v2.102.0, dated Oct 2026, and that's a wrap! ππβ¨
π¦ where this page comes from
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms