git-cliff is a highly customizable changelog generator built in Rust with a convenient Python interface. It processes Git history to produce detailed, human-readable release notes based on conventional commits. Currently at version 2.12.0, the library maintains an active development pace with frequent updates and new features.
pip install git-cliffVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to generate a changelog using `git-cliff`'s Python interface. It creates a temporary Git repository with dummy commits and a minimal configuration file to ensure a self-contained and runnable example.
Rename your configuration file from `cliff.toml` to `.git-cliff.toml`. Review the changelog for `v2.0.0` for any other potential syntax or section changes within the TOML structure that might require updates.
Adopt a consistent Git tagging strategy (e.g., semantic versioning like `vX.Y.Z`). Use `git tag` to verify existing tags. For generating changelogs for the latest commits without a tag, use arguments like `--unreleased` (if available via CLI or exposed in Python API) or generate to a specific tag range.
When debugging complex configuration or templating issues, try running `git cliff --verbose` directly in your terminal with the same configuration file. This often provides more granular diagnostics and stack traces from the Rust engine that can pinpoint the exact problem area.
No dependency data recorded yet.