talira

Commitizen

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 toolplan not known
Takes pluginsplan not known

Alternatives

The same job

These do what Commitizen does.

  1. semantic-release Fully automated version management and package publishing
  2. Release Drafter Drafts your next release notes as pull requests are merged
  3. release-please Generate release PRs based on the Conventional Commits spec
  4. commit-and-tag-version Bump versions, write the CHANGELOG and tag releases from Conventional Commits
  5. GoReleaser Release engineering, simplified
  6. JReleaser The quick and effortless way to release your project

Compare Commitizen with the top 3