GH-PR-REVIEW(1)

πŸ’… gh-pr-review β€” bestie's guide to dropping a review on a PR

okay so this is the manual page for gh-pr-review from the GitHub CLI manual, and honestly? it's giving "small command, big opinions." let's get into it πŸŽ€


✨ NAME ✨

gh-pr-review β€” add a review to a pull request. that's it. that's the whole job. slay. πŸ’…


🌸 SYNOPSIS 🌸

gh pr review [<number> | <url> | <branch>] [flags]

so you point it at a PR (by number, url, or branch) and then you bless it with some flags. or don't point it anywhere and it'll figure it out. main character energy fr fr. ✨


πŸ¦‹ DESCRIPTION πŸ¦‹

Add a review to a pull request. simple as that, bestie.

Without an argument, the pull request that belongs to the current branch is reviewed. so you literally just vibe in your branch and hit enter. the way that just works πŸ˜­πŸ’–


πŸŽ€ OPTIONS πŸŽ€

  • -a, --approve β€” approve the pull request. green check, hearts in the chat, everyone's happy 🫢
  • -b, --body <string> β€” specify the body of a review. this is where you put your little words ✍️
  • -F, --body-file <file> β€” read body text from file (use "-" to read from standard input). yes, the literal dash. it's iconic, it means stdin, don't overthink it πŸ’€
  • -c, --comment β€” comment on a pull request. no verdict, just thoughts πŸ’­
  • -r, --request-changes β€” request changes on a pull request. respectfully: nope, do it again πŸ™ˆ

πŸ‘‘ OPTIONS INHERITED FROM PARENT COMMANDS πŸ‘‘

  • -R, --repo <[HOST/]OWNER/REPO> β€” select another repository using the [HOST/]OWNER/REPO format. inherited from the parent command, so it comes pre-loaded, like good genetics πŸ’œ

πŸ”₯ EXIT CODES πŸ”₯

  • 0: Successful execution β€” everything ate, no crumbs ✨
  • 1: Error β€” something went sideways, bestie πŸ’€
  • 2: Command canceled β€” you changed your mind, valid, we respect it πŸ™ˆ
  • 4: Authentication required β€” you gotta log in first, no cap πŸ”‘
NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information.

🌈 EXAMPLE 🌈

# Approve the pull request of the current branch
$ gh pr review --approve

# Leave a review comment for the current branch
$ gh pr review --comment -b "interesting"

# Add a review for a specific pull request
$ gh pr review 123

# Request changes on a specific pull request
$ gh pr review 123 -r -b "needs more ASCII art"

not the "interesting" in quotes 😭 and "needs more ASCII art" β€” whoever wrote that was absolutely correct and should say it louder tbh. those are the exact examples, don't come for me, they're verbatim πŸ’–


⭐ SEE ALSO ⭐

  • gh-pr(1) β€” the whole gh-pr situation, go read it, it's the parent, show some respect 🧚

okay that's the whole page, and honestly? you ate that. go review some PRs, be kind, be specific, and remember: --approve is not a personality, but it's close. byeee πŸ“

GitHub CLI v2.102.0 β€” Oct 2026. that's the version, that's the date, kiss kiss, mwah πŸ’œ

πŸ“¦ where this page comes from