commitlint
A popular open-source tool that checks commit messages against a set of rules, most often the Conventional Commits format.
In more detail
It is usually run from a commit-msg hook on developers' machines and again in continuous integration, where it cannot be skipped. Its default list of commit types, such as docs, refactor and chore, is where much of the Conventional Commits convention beyond feat and fix comes from.
Related terms
- Conventional Commits — A specification for commit subject lines of the form type(optional scope): description, so tools can read what kind of change each commit is.
- Git hook — A script Git runs automatically at a point in its workflow, such as pre-commit, which can stop the commit by exiting non-zero.
- commit type — The word at the start of a Conventional Commits subject that says what kind of change the commit is, such as feat or fix.
Taught in
- Conventional Commits — Advanced Git Internals & Distributed Workflows