1GH-PR-VIEW(1)                  GitHub CLI manual                 GH-PR-VIEW(1)
2
3
4

NAME

6       gh-pr-view - View a pull request
7
8
9

SYNOPSIS

11       gh pr view [<number> | <url> | <branch>] [flags]
12
13
14

DESCRIPTION

16       Display the title, body, and other information about a pull request.
17
18
19       Without  an  argument,  the  pull  request  that belongs to the current
20       branch is displayed.
21
22
23       With '--web', open the pull request in a web browser instead.
24
25
26

OPTIONS

28       -c, --comments
29              View pull request comments
30
31
32       -q, --jq <expression>
33              Filter JSON output using a jq expression
34
35
36       --json <fields>
37              Output JSON with the specified fields
38
39
40       -t, --template <string>
41              Format JSON output using a Go template
42
43
44       -w, --web
45              Open a pull request in the browser
46
47
48

OPTIONS INHERITED FROM PARENT COMMANDS

50       -R, --repo <[HOST/]OWNER/REPO>
51              Select another repository using the [HOST/]OWNER/REPO format
52
53
54

SEE ALSO

56       gh-pr(1)
57
58
59
60                                   Jun 2022                      GH-PR-VIEW(1)
Impressum