gh pr view Show the details of a pull request

Prints a pull request's title, status, description, reviewers and checks in the terminal. With no number it shows the one for your current branch.

Synopsis

gh pr view [NUMBER | URL | BRANCH] [FLAGS]

Common options

Option or formWhat it does
-w, --webOpen it in the browser
-c, --commentsInclude comments
--json FIELDSOutput fields as JSON
-q, --jq EXPRFilter JSON output
-R, --repo owner/repoLook in a different repository

Examples

View the pull request for this branch
gh pr view
Add search #42
Open • octocat wants to merge 3 commits into main from feature/search
View a specific one
gh pr view 42
Open it on GitHub
gh pr view 42 --web
Read the discussion
gh pr view 42 --comments
Get the state as text
gh pr view 42 --json state --jq .state

Notes

See also

Last reviewed 2026-10-09.