Conventional Commits Cheat Sheet: Types, Scopes and Breaking Changes
Checked against Conventional Commits Conventional Commits 1.0.0; commitlint v21.2.4 on 28 November 2026. Each section links to the official docs it was checked against.
This sheet is for teams that want commit messages a release tool can read, without memorising the spec. It follows Conventional Commits 1.0.0 and the commitlint docs (latest release v21.2.4, 18 Oct 2026). The message formats below were not checked with commitlint locally, so its rows are marked as docs only.
When to use what
The spec itself only defines two types: feat for a new feature and fix for a bug fix. Everything else you see in the wild, such as docs, refactor or chore, comes from the Angular convention via @commitlint/config-conventional. That list is a good default, and I'd adopt it as is rather than inventing team types nobody's tooling knows.
Keep scopes short and stable: a package name or an area like auth or api. A scope that changes every week is noise. Use ! after the type when the subject alone tells the story, and add a BREAKING CHANGE: footer when users need migration notes. You can use both.
If your team squashes pull requests, only the squash commit's title has to follow the format, which is far easier to enforce than every work-in-progress commit. The commit message generator drafts a compliant message from a description of the change, the semver calculator shows what the next version becomes, and the commit messages post covers subject length and trailers. Name branches to match with the branch name generator.
<type>[optional scope]: <description>First line: type, optional scope in parentheses, colon, space, summary
feat(parser): accept arrays in configNew feature scoped to one area
fix: handle empty input in slugifyBug fix with no scope
(blank line) then bodyFree-form body starts one blank line after the header
Refs: #123Footer: a word token, colon and space, then the value
Fixes #42Footer form with space and # instead of a colon
Reviewed-by: SamMulti-word footer tokens use hyphens instead of spaces
fix: ...Maps to a PATCH release
feat: ...Maps to a MINOR release
feat(api)!: drop v1 endpoints! before the colon marks a breaking change, so a MAJOR release
BREAKING CHANGE: config moved to app.tomlFooter that marks a breaking change; must be uppercase
BREAKING-CHANGE: ...Hyphenated footer token the spec treats as the same thing
revert: restore old login page
Refs: a1b2c3dSuggested revert style; the spec leaves reverts to your tooling
Defaults of @commitlint/config-conventional: header up to 100 characters, lower-case subject, no trailing period, body lines up to 100 characters except lines with URLs.
buildBuild system or dependency changes
choreMaintenance that doesn't touch source or tests
ciCI configuration and scripts
docsChanges to documentation files only
perfChange that improves performance
refactorCode change that neither fixes a bug nor adds a feature
styleFormatting and whitespace, no behaviour change
testAdding or fixing tests
Hook setup is from https://commitlint.js.org/guides/local-setup.html.
npm install --save-dev @commitlint/config-conventional @commitlint/cliInstall the CLI and the conventional preset
echo "export default {extends: ['@commitlint/config-conventional']};" > commitlint.config.jsMinimal config that uses the preset
npx husky initSet up Husky v9 hooks after installing husky
echo "npx --no -- commitlint --edit \$1" > .husky/commit-msgLint every message as you commit
npx commitlint --from HEAD~1 --to HEAD --verboseLint the last commit and print a report even when it passes
echo "feat: add search" | npx commitlint --default-configCheck one message from stdin with the built-in conventional rules
npx commitlint --from-last-tagLint everything since the last tag, useful in a release job
Worked example: Work out the next version from a week of commits
Your last release is 2.4.1 and these commits landed since:
fix(auth): refresh token before expiry
docs: explain rate limits
feat(search): filter by tag
refactor(db): split query builder
feat(api)!: return ISO dates
BREAKING CHANGE: `createdAt` is now an ISO 8601 string, not a Unix timestamp.
Read them from the highest impact down. The last commit has ! and a BREAKING CHANGE footer, so the next release is a major one, 3.0.0, no matter what else is in the batch. Without it, the feat(search) commit would make it 2.5.0, and with only the fix it would be 2.4.2. The docs and refactor commits don't bump anything on their own; release tools usually leave them out of the changelog or list them in a minor section. The footer text is what ends up under a breaking-changes heading, so write it for the person upgrading, not for your reviewer.
Common mistakes
Writing
Feat: Add search.and having commitlint reject it.The preset wants a lower-case type and subject and no trailing full stop:
feat: add search.Putting
breaking change:in lower case in the footer.The spec requires
BREAKING CHANGEin upper case; the other parts are case-insensitive.Labelling a behaviour change as
refactorso it doesn't bump the version.If users notice it, it is a
fixorfeat, and if it breaks them it needs!or a breaking-change footer.Assuming
choreanddocsare part of the spec and that every tool accepts them.Only
featandfixare defined by the spec; other types come from your commitlint config, so document the list for your team.Using the wrong type and pushing it to
main.Before merging, reword it with
git rebase -i; after a release, fix the changelog by hand rather than rewriting shared history.
Related cheat sheets
Sources
- https://www.conventionalcommits.org/en/v1.0.0/
- https://github.com/conventional-changelog/commitlint/blob/master/%40commitlint/config-conventional/README.md
- https://commitlint.js.org/reference/cli.html
- https://commitlint.js.org/guides/local-setup.html
- https://github.com/conventional-changelog/commitlint/releases/tag/v21.2.4
How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.