项目作者: ahmadnassri

项目描述 :
commitlint your PRs with a default configuration auto applied
高级语言: JavaScript
项目地址: git://github.com/ahmadnassri/action-commit-lint.git
创建时间: 2020-08-13T03:54:17Z
项目社区:https://github.com/ahmadnassri/action-commit-lint

开源协议:MIT License

下载


GitHub Action: commitlint

commitlint as a GitHub Action

license
release

Usage

simple
  1. name: commit-lint
  2. on: [push, pull_request]
  3. jobs:
  4. lint:
  5. runs-on: ubuntu-latest
  6. steps:
  7. - uses: ahmadnassri/action-commit-lint@v2
use different built-in config
  1. name: commit-lint
  2. on: [push, pull_request]
  3. jobs:
  4. lint:
  5. runs-on: ubuntu-latest
  6. steps:
  7. - uses: ahmadnassri/action-commit-lint@v2
  8. with:
  9. config: angular
use your own rules
  1. name: commit-lint
  2. on: [push, pull_request]
  3. jobs:
  4. lint:
  5. runs-on: ubuntu-latest
  6. steps:
  7. - uses: actions/checkout@v4
  8. - uses: ahmadnassri/action-commit-lint@v2
  9. with:
  10. config: ./path/to/commitlint.config

Notes for custom rules:

Inputs & Outputs

output type required default description
token input - The GitHub token used to inspect the pull-request commits
config input conventional name of config to use, or path to config file
report output N/A - a JSON object with the full commitlint report data

built-in configs

the following are available without any additional requirement


Author: Ahmad Nassri
Twitter: @AhmadNassri