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 --web

Examples

Related commands

Practise · All commands