Skip site navigation (1)Skip section navigation (2)

  
 
  

home | help
GH-PR-COMMENT(1)		GitHub CLI manual		GH-PR-COMMENT(1)

NAME
     gh-pr-comment - 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 interac-
     tively 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)

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

     --delete-last
	    Delete the last comment of the current user

     --edit-last
	    Edit the last comment of the current user

     -e, --editor
	    Skip prompts and open the text editor to write the body in

     -w, --web
	    Open the web browser to write the comment

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

OPTIONS INHERITED FROM PARENT COMMANDS
     -R, --repo <[HOST/]OWNER/REPO>
	    Select another repository using the [HOST/]OWNER/REPO format

EXIT CODES
     0: Successful execution

     1: Error

     2: Command canceled

     4: Authentication required

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

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

SEE ALSO
     gh-pr(1)

				    Aug 2026			GH-PR-COMMENT(1)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=gh-pr-comment&sektion=1&manpath=FreeBSD+Ports+15.1.quarterly>

home | help