commands.sh

gh pr comment

all

Add a comment to a GitHub pull request.

More info →

Options (2)

-b, --bodyboolean

Comment on the pull request of the current branch

Example: gh pr comment {{[-b|--body]}} "{{LGTM}}"
-F, --body-fileboolean

Comment from a file

Example: gh pr comment {{123}} {{[-F|--body-file]}} {{path/to/file.txt}}

Examples (4)

Comment on the pull request of the current branch

gh pr comment [-b|--body] "LGTM"

Comment on a specific pull request

gh pr comment 123 [-b|--body] "Thanks!"

Comment from a file

gh pr comment 123 [-F|--body-file] path/to/file.txt

Open the editor to write a multi-line comment

made by @shridhargupta | data from tldr-pages