1GH-PR-COMMENT(1) GitHub CLI manual GH-PR-COMMENT(1)
2
3
4
6 gh-pr-comment - Add a comment to a pull request
7
8
9
11 gh pr comment [<number> | <url> | <branch>] [flags]
12
13
14
16 Add a comment to a GitHub pull request.
17
18
19 Without the body text supplied through flags, the command will interacā
20 tively prompt for the comment text.
21
22
23
25 -b, --body <text>
26 The comment body text
27
28
29 -F, --body-file <file>
30 Read body text from file (use "-" to read from standard input)
31
32
33 -e, --editor
34 Skip prompts and open the text editor to write the body in
35
36
37 -w, --web
38 Open the web browser to write the comment
39
40
41
43 -R, --repo <[HOST/]OWNER/REPO>
44 Select another repository using the [HOST/]OWNER/REPO format
45
46
47
49 $ gh pr comment 13 --body "Hi from GitHub CLI"
50
51
52
53
54
56 gh-pr(1)
57
58
59
60 Jun 2022 GH-PR-COMMENT(1)