Skip to content

A pre-commit hook to check commit messages for Conventional Commits formatting

Notifications You must be signed in to change notification settings

igorhrcek/pre-commit-conventional-commits

Repository files navigation

Conventional Commits pre-commit hook

A pre-commit hook to check commit messages for Conventional Commits formatting.

Usage

Add the following entry into your .pre-commit-config.yaml file:

repos:
  # - repo: ...

  - repo: https://github.com/igorhrcek/pre-commit-conventional-commits
    rev: v1.0.0
    hooks:
      - id: pre-commit-conventional-commits
        stages: [commit-msg]
        args: [] # optional: list of Conventional Commits types to allow e.g. [feat, fix, ci, chore, test]

Install the script:

pre-commit install --hook-type commit-msg

About

A pre-commit hook to check commit messages for Conventional Commits formatting

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages