GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
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)

Create a new comment if no comments are found. Can be used only with --edit-last

Delete the last comment of the current user

Edit the last comment of the current user

Skip prompts and open the text editor to write the body in

Open the web browser to write the comment

Skip the delete confirmation prompt when --delete-last is provided

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

0: Successful execution

1: Error

2: Command canceled

4: Authentication required

NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information.

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

gh-pr(1)

Jul 2025

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.