Skip to content
Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

deploystarsforksHitCountMaintainability RatingTechnical DebtBugs

Commit Comment GitHub Action

This GitHub Action allows you to automatically create a commit comment on a pull request.

Usage

  1. 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.'
  2. Configure the token input with a secret GitHub API token with the necessary permissions.

  3. Specify the body input with the content of the comment you want to create.

Inputs

  • token (required): Secret GitHub API token to use for making API requests.
  • body (required): Comment content.

Outputs

  • comment_id: The ID of the comment that was created.

Example

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!'

Versioning

This action follows semantic versioning. See releases for more information about each version.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

This GitHub Action allows you to automatically create a commit comment on a pull request. | 此GitHub action用于自动创建提交注评论

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages