Skip to content

Conventional Commit Lint

Actions
commitlint your PRs with a default configuration auto applied
v2.1.17
Latest
Star (7)

GitHub Action: commitlint

commitlint as a GitHub Action

license release

Usage

simple
name: commit-lint

on: [push, pull_request]

jobs:
  lint:
    runs-on: ubuntu-latest

    steps:
      - uses: ahmadnassri/action-commit-lint@v2
use different built-in config
name: commit-lint

on: [push, pull_request]

jobs:
  lint:
    runs-on: ubuntu-latest

    steps:
      - uses: ahmadnassri/action-commit-lint@v2
        with:
          config: angular
use your own rules
name: commit-lint

on: [push, pull_request]

jobs:
  lint:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v4
      - uses: ahmadnassri/action-commit-lint@v2
        with:
          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

Conventional Commit Lint is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

commitlint your PRs with a default configuration auto applied
v2.1.17
Latest

Conventional Commit Lint is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.