gh-pr-comment - Man Page

Create a new pr comment

Synopsis

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

Description

Create a new pr comment.

Without an argument, the pull request that belongs to the current branch is selected.

With '--web', comment on the pull request in a web browser instead.

Options

-b,  --body <string>

Supply a body. Will prompt for one otherwise.

-F,  --body-file <file>

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

-e,  --editor

Add body using editor

-w,  --web

Add body in browser

Options Inherited from Parent Commands

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

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

Example

$ gh pr comment 22 --body "This looks great, lets get it deployed."

See Also

gh-pr(1)

Referenced By

gh-pr(1).

Jan 2022 GitHub CLI manual