Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
search

GitHub Action

Conventional Commit Lint

v2.0.4

Conventional Commit Lint

search

Conventional Commit Lint

commitlint your PRs with a default configuration auto applied

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Conventional Commit Lint

uses: ahmadnassri/[email protected]

Learn more about this action in ahmadnassri/action-commit-lint

Choose a version

GitHub Action: commitlint

commitlint as a GitHub Action

license release semantic

Usage

simple
name: commit-lint

on: [push, pull_request]

jobs:
  lint:
    runs-on: ubuntu-latest

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

on: [push, pull_request]

jobs:
  lint:
    runs-on: ubuntu-latest

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

on: [push, pull_request]

jobs:
  lint:
    runs-on: ubuntu-latest

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