DOKK / manpages / debian 12 / gh / gh-issue-comment.1.en
GH-ISSUE-COMMENT(1) GitHub CLI manual GH-ISSUE-COMMENT(1)

gh-issue-comment - Add a comment to an issue

gh issue comment {<number> | <url>} [flags]

Add a comment to a GitHub issue.

Without the body text supplied through flags, the command will interactively prompt for the comment text.

-b, --body <text>
The comment body text

-F, --body-file <file>
Read body text from file (use "-" to read from standard input)

--edit-last
Edit the last comment of the same author

-e, --editor
Skip prompts and open the text editor to write the body in

-w, --web
Open the web browser to write the comment

-R, --repo <[HOST/]OWNER/REPO>
Select another repository using the [HOST/]OWNER/REPO format

$ gh issue comment 12 --body "Hi from GitHub CLI"

gh-issue(1)

Feb 2023