gh pr comment

Comment on a pull request

What it does

gh pr comment adds a message to a pull request's conversation. Pass the text with --body; without it an editor opens, and --web opens the form in the browser.

--edit-last edits your last comment instead of adding a new one. A comment is not a review: it approves nothing and blocks no merge.

Syntax

gh pr comment <number> --body "<text>"
gh pr comment <number> --edit-last

Examples

Related commands

Practise · All commands