Skip to content

Files

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Latest commit

be2bc76 Β· Feb 1, 2024

History

History

docs

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
May 3, 2021
Jul 11, 2017
Apr 26, 2019
Aug 19, 2023
Jan 31, 2019
Aug 8, 2021
Sep 8, 2020
Feb 20, 2022
Feb 1, 2024
Jan 27, 2024
Jul 11, 2017
Nov 16, 2023
Jul 30, 2022
Apr 29, 2021
Feb 6, 2020
Nov 19, 2023
Jan 22, 2024
Nov 16, 2023
Oct 10, 2023
Feb 6, 2020
Jul 26, 2020
Nov 16, 2023
Jan 25, 2024

README.md

Lint commit messages

Demo generated with svg-term-cli

commitlint   slack

npm latest Github Actions

commitlint helps your team adhere to a commit convention. By supporting npm-installed configurations it makes sharing of commit conventions easy.

Getting started

Install

npm install -g @commitlint/cli @commitlint/config-conventional

Configure

echo "module.exports = {extends: ['@commitlint/config-conventional']}" > commitlint.config.js

Test

# Lint from stdin
echo 'foo: bar' | commitlint
β§—   input: foo: bar
βœ–   type must be one of [build, chore, ci, docs, feat, fix, perf, refactor, revert, style, test] [type-enum]

βœ–   found 1 problems, 0 warnings
β“˜   Get help: https://github.com/conventional-changelog/commitlint/#what-is-commitlint
# Lint last commit from history
commitlint --from=HEAD~1

?> To get the most out of commitlint you'll want to automate it in your project lifecycle. See our Local setup guide for next steps.

Documentation

  • Guides - Common use cases explained in a step-by-step pace
  • Concepts - Overarching topics important to understand the use of commitlint
  • Reference - Mostly technical documentation

Attributions

  • commitlint is possible because of the hard work of the folks of the conventional-changelog project
  • Thanks @markusoelhafen for providing the commitlint icon