1GH-PR-REVIEW(1) GitHub CLI manual GH-PR-REVIEW(1)
2
3
4
6 gh-pr-review - Add a review to a pull request
7
8
9
11 gh pr review [<number> | <url> | <branch>] [flags]
12
13
14
16 Add a review to a pull request.
17
18
19 Without an argument, the pull request that belongs to the current
20 branch is reviewed.
21
22
23
25 -a, --approve
26 Approve pull request
27
28
29 -b, --body <string>
30 Specify the body of a review
31
32
33 -F, --body-file <file>
34 Read body text from file (use "-" to read from standard input)
35
36
37 -c, --comment
38 Comment on a pull request
39
40
41 -r, --request-changes
42 Request changes on a pull request
43
44
45
47 -R, --repo <[HOST/]OWNER/REPO>
48 Select another repository using the [HOST/]OWNER/REPO format
49
50
51
53 # approve the pull request of the current branch
54 $ gh pr review --approve
55
56 # leave a review comment for the current branch
57 $ gh pr review --comment -b "interesting"
58
59 # add a review for a specific pull request
60 $ gh pr review 123
61
62 # request changes on a specific pull request
63 $ gh pr review 123 -r -b "needs more ASCII art"
64
65
66
67
68
70 gh-pr(1)
71
72
73
74 Jun 2022 GH-PR-REVIEW(1)