Giter Site home page Giter Site logo

r0ll1ngst0ne / conventional-commit-action Goto Github PK

View Code? Open in Web Editor NEW

This project forked from oat-sa/conventional-commit-action

0.0 0.0 0.0 5.78 MB

Github action to check conventional commits

License: GNU General Public License v2.0

JavaScript 100.00%

conventional-commit-action's Introduction

conventional-commit-action

Github action to check conventional commits on OAT pull requests.

The action will :

  • Fail pull request with no conventional commits
  • Post a comment with the target version number based on pull request commits

Due to a limitation of the Github API the action will analyze maximum 250 commits per pull request.

Inputs

github_token

Required A token with permissions to read/write in the PR.

Outputs

version

The version number expected from the commits.

Usage

This action expects to run on a git repo, that contains the last tags. To ensure it, you should run the actions/checkout (or similar) action first :

name: Continous integration

on:
  pull_request:
    branches: [ develop ]

jobs:
  pr-check:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - run: git fetch --unshallow --tags
    - name: Check commit
      if: always()
      uses: oat-sa/conventional-commit-action@v0
      with:
        github_token: ${{ secrets.GITHUB_TOKEN }}

Development

Please commit the content of the /dist folder after the build

Set up :

npm ci

Build :

npm run build

Publishing

Actions are released as tags:

  • one tag that reflects the exact version
  • a major version tag that points to the last tag of that version

For example, when releasing the version v1.2.3, ensure the tag v1 points to that version as well.

conventional-commit-action's People

Contributors

krampstudio 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.