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/REPOformat. 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 wholegh-prsituation, 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
- 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