Giter Site home page Giter Site logo

dext7r / commit-comment Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 390 KB

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

Home Page: https://github.com/dext7r/commit-comment

License: MIT License

JavaScript 50.58% TypeScript 49.42%
acttion github github-actions

commit-comment's Introduction

deploy stars forks HitCount Maintainability Rating Technical Debt Bugs

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 Comment
      uses: dext7r/commit-comment@main
      with:
        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 Comment
on:
  pull_request:
    types: [opened]

jobs:
  comment:
    runs-on: ubuntu-latest

    steps:
      - name: Commit Comment
        uses: dext7r/commit-comment@main
        with:
          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.

commit-comment's People

Contributors

h7ml avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.