gh pr view
Read a pull request: description, status and reviews
What it does
gh pr view shows the title, the author, the status, the description and the review outcome. Name the PR by number, URL or branch; with no argument it takes the current branch's PR.
--comments adds the conversation, and --web opens the PR in the browser, where a large diff is easier to read and line comments easier to leave.
Syntax
gh pr view <number>
gh pr view --comments
gh pr view --webExamples
Read pull request 42: description, status and reviews
gh pr view 42pr view— show a pull request42— the number; without it, the current branch's PR
Open the current branch's pull request in the browser
gh pr view --websame as:
gh pr view -wpr view— show the current branch's pull request--web— in the browser, not the terminal
Related commands
- gh pr list — List pull requests
- gh pr diff — See the changes of a pull request
- gh pr checks — Check the CI status of a pull request