Scroll to navigation

GH-ISSUE-COMMENT(1) GitHub CLI manual GH-ISSUE-COMMENT(1)

NAME

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

SYNOPSIS

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

DESCRIPTION

Add a comment to a GitHub issue.

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

OPTIONS

The comment body text

Read body text from file (use "-" to read from standard input)

Edit the last comment of the same author

Skip prompts and open the text editor to write the body in

Open the web browser to write the comment

OPTIONS INHERITED FROM PARENT COMMANDS

Select another repository using the [HOST/]OWNER/REPO format

EXAMPLE

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

SEE ALSO

gh-issue(1)

Mar 2024