Add comment
- Updated: 2026/05/12
The Add Comment action adds a comment to the specified issue or pull request in a GitHub repository.
Overview
The Add Comment action adds a comment to an issue or pull request in a GitHub repository using the issue or pull request number respectively. The response data contains the ID of the new comment. The action requires an active GitHub session to authenticate the request.
Settings
The Add Comment action contains the following settings:
Note: All the input fields support string variables. You can create a string variable to hold
the appropriate text string and select it in the applicable setting.
- Session name
-
Specifies the GitHub session name that the Connect action creates. Use one of the following options to specify the session name:
- Session name: Enter the
session name as text directly or select the string
variable that holds the session name text. Automation
360 sets
Defaultas the default session name. - Variable: Select the GitHub session variable that the Connect action creates.
- Session name: Enter the
session name as text directly or select the string
variable that holds the session name text. Automation
360 sets
- Owner name
- Specifies the name of the GitHub repository owner. The owner can be an organization or a user account. You can either enter the name directly as text or select the applicable string variable.
- Repository name
- Specifies the name of the GitHub repository in which the action adds the comment. You can either enter the repository name directly as text or select the applicable string variable.
- Type
- Specifies the type of the item to which the action adds the comment. Select one of the
following options:
- Issue: Select to enter the issue number in the Issue number field.
- Pull request: Select to enter the pull request number in the Pull request number field.
- Comment
- Specifies the body text of the comment. You can either enter the comment directly as text or select the applicable string variable.
- Assign output to variable
- Specifies the string variable in which the action stores the ID of the new comment.