This GitHub Action allows you to automatically create a commit comment on a pull request.
Add a step in your workflow YAML file to use this action:
- name: Commit Commentuses: dext7r/commit-comment@mainwith: token: ${{ secrets.GITHUB_TOKEN }}body: 'This is a test comment.'
Configure the
tokeninput with a secret GitHub API token with the necessary permissions.Specify the
bodyinput with the content of the comment you want to create.
token(required): Secret GitHub API token to use for making API requests.body(required): Comment content.
comment_id: The ID of the comment that was created.
name: Create Commenton:
pull_request:
types: [opened]jobs:
comment:
runs-on: ubuntu-lateststeps:
- name: Commit Commentuses: dext7r/commit-comment@mainwith:
token: ${{ secrets.GITHUB_TOKEN }}body: 'Hello from GitHub Action!'This action follows semantic versioning. See releases for more information about each version.
This project is licensed under the MIT License - see the LICENSE file for details.