1GH-ISSUE-COMMENT(1) GitHub CLI manual GH-ISSUE-COMMENT(1)
2
3
4
6 gh-issue-comment - Add a comment to an issue
7
8
9
11 gh issue comment {<number> | <url>} [flags]
12
13
14
16 Add a comment to a GitHub issue.
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 --edit-last
34 Edit the last comment of the same author
35
36
37 -e, --editor
38 Skip prompts and open the text editor to write the body in
39
40
41 -w, --web
42 Open the web browser to write the comment
43
44
45
47 -R, --repo <[HOST/]OWNER/REPO>
48 Select another repository using the [HOST/]OWNER/REPO format
49
50
51
53 $ gh issue comment 12 --body "Hi from GitHub CLI"
54
55
56
57
58
60 gh-issue(1)
61
62
63
64 Oct 2023 GH-ISSUE-COMMENT(1)