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

gh-pr-comment - Add a comment to a pull request

gh pr comment [<number> | <url> | <branch>] [flags]

Add a comment to a GitHub pull request.

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

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

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

$ gh pr comment 13 --body "Hi from GitHub CLI"

gh-pr(1)

Apr 2024