gh-pr-comment - Man Page

Add a comment to a pull request

Synopsis

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

Description

Add a comment to a GitHub pull request.

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

Options

-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

Options Inherited from Parent Commands

-R, --repo <[HOST/]OWNER/REPO>

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

Example

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

See Also

gh-pr(1)

Referenced By

gh-pr(1).

Jul 2024 GitHub CLI manual