Enforce commit message rules, bump versions and generate changelogs
open sourceMITfree
Commitizen is a Python command-line tool that makes a team write commits to a shared convention (Conventional Commits by default) through an interactive prompt and a commit-message check you can run as a pre-commit hook. From that history its cz bump command works out the next semantic version, updates the version in your project's files and writes the changelog in the Keep a Changelog format. Rules, templates and version providers can be customised, and plugins install with pip.
Ways to install
Package managers
Problems it solves
- make everyone on the team write commit messages in the same format
- work out the next version number from the commits since the last release
- generate a changelog automatically when I cut a release
- reject commits whose message doesn't follow our convention
Features
- interactive prompt for conventional commits
- commit message check as a pre-commit hook
- semantic version bump from commit history
- changelog generation in Keep a Changelog format
- custom commit rules and templates
- plugins via pip
Limitations
- Needs Python 3.10 or later2
Capabilities
| Has a command line tool | plan not known |
|---|---|
| Takes plugins | plan not known |
Alternatives
The same job
These do what Commitizen does.
- semantic-release Fully automated version management and package publishing
- Release Drafter Drafts your next release notes as pull requests are merged
- release-please Generate release PRs based on the Conventional Commits spec
- commit-and-tag-version Bump versions, write the CHANGELOG and tag releases from Conventional Commits
- GoReleaser Release engineering, simplified
- JReleaser The quick and effortless way to release your project
