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

NAME

6       gh-pr-comment - Add a comment to a pull request
7
8
9

SYNOPSIS

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

DESCRIPTION

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

OPTIONS

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

OPTIONS INHERITED FROM PARENT COMMANDS

47       -R, --repo <[HOST/]OWNER/REPO>
48              Select another repository using the [HOST/]OWNER/REPO format
49
50
51

EXAMPLE

53              $ gh pr comment 13 --body "Hi from GitHub CLI"
54
55
56
57
58

SEE ALSO

60       gh-pr(1)
61
62
63
64                                   Jan 2023                   GH-PR-COMMENT(1)
Impressum