# gh pr view

Read a PR without leaving your shell.

## Quick answer
```
gh pr view 123
```

## Syntax
```
gh pr view [<number> | <url> | <branch>] [flags]
```

## Examples

# View the PR for the current branch
gh pr view

# View a specific PR by number
gh pr view 123

# Include comments and reviews
gh pr view 123 --comments

# Open the PR on github.com
gh pr view 123 --web

# Pull specific fields as JSON
gh pr view 123 --json state,mergeable,reviewDecision

## Key flags

  -c, --comments	Show the pull request's comments and reviews.
  -w, --web	Open the pull request in the browser.
  --json	Output specified fields as JSON.
  -q, --jq	Filter JSON output with a jq expression.
  -t, --template	Format JSON output with a Go template.

Full guide: https://ghcli.com/gh-pr-view.php
