GH-PR-VIEW(1)
π
GH-PR-VIEW(1) β the gh pr view glow-up
okay so bestie, welcome to the gh-pr-view page from the GitHub CLI manual β this is the one where you peek at a pull request and see literally everything about it. main character energy fr fr π
β¨ NAME β¨
gh-pr-view β view a pull request π
π¦ SYNOPSIS π¦
gh pr view [<number> | <url> | <branch>] [flags]
πΈ DESCRIPTION πΈ
So what does it do? It displays the title, body, and other information about a pull request. That's it, that's the vibe π
Without an argument, the pull request that belongs to the current branch is displayed β no cap, it just knows which one you mean π§
With the --web flag, open the pull request in a web browser instead. icon behavior honestly π
π OPTIONS π
-c,--commentsβ view pull request comments π¬ (yes, the whole chaotic comment thread)-q,--jq <expression>β filter JSON output using a jq expression β¨--json <fields>β output JSON with the specified fields π-t,--template <string>β format JSON output using a Go template; seegh help formattingπ-w,--webβ open a pull request in the browser π
π OPTIONS INHERITED FROM PARENT COMMANDS π
-R,--repo <[HOST/]OWNER/REPO>β select another repository using the[HOST/]OWNER/REPOformat π«Ά
π₯ JSON FIELDS π₯
the way that --json gives you SO many fields to pick from, it's giving full menu at a boba shop π here they all are, exactly, no skips:
additions, assignees, author, autoMergeRequest, baseRefName, baseRefOid, body, changedFiles, closed, closedAt, closingIssuesReferences, comments, commits, createdAt, deletions, files, fullDatabaseId, headRefName, headRefOid, headRepository, headRepositoryOwner, id, isCrossRepository, isDraft, labels, latestReviews, maintainerCanModify, mergeCommit, mergeStateStatus, mergeable, mergedAt, mergedBy, milestone, number, potentialMergeCommit, projectCards, projectItems, reactionGroups, reviewDecision, reviewRequests, reviews, state, statusCheckRollup, title, updatedAt, url
π EXIT CODES π
vibe check on how it went π
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 β don't come for me if there's more, check the help fr fr.
π SEE ALSO π
gh-pr(1)β the rest of the pr squad π
and that's the whole page bestie, you ate π this was GH-PR-VIEW(1) from the GitHub CLI manual, shipped as GitHub CLI v2.102.0, dated Oct 2026 β mwah, periodt π
π¦ 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