Add comment action in GitHub package
- Updated: 2026/05/13
Add comment action in GitHub package
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.
Note: Ensure that the Connect action
is configured before proceeding with the List issues as the
Connect action provides the authentication context for the
automation session.
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.
- Variable: Select the GitHub session variable that the Connect action creates.
- Owner name
- Specifies the name of the GitHub repository owner.
- Repository name
- Specifies the name of the GitHub repository in which the action adds the comment.
- 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.