1GH-PR-VIEW(1) GitHub CLI manual GH-PR-VIEW(1)
2
3
4
6 gh-pr-view - View a pull request
7
8
9
11 gh pr view [<number> | <url> | <branch>] [flags]
12
13
14
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
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; see "gh help formatting"
42
43
44 -w, --web
45 Open a pull request in the browser
46
47
48
50 -R, --repo <[HOST/]OWNER/REPO>
51 Select another repository using the [HOST/]OWNER/REPO format
52
53
54
56 gh-pr(1)
57
58
59
60 Nov 2023 GH-PR-VIEW(1)