git-cliff generates changelogs from a repository’s Git history. It groups commit messages using Conventional Commits, structured prefixes such as feat: and fix:, or custom matching rules.
- Run the command-line tool in a checkout containing the history and tags you want to summarize.
- Use
git cliff --unreleased --no-execto preview unreleased changes while disabling external commands configured in processing rules. - Write output with
--output CHANGELOG.md, or choose a specific commit range for one release. - Keep grouping rules and the output template in
cliff.tomlso releases follow the same format. - The project offers a choice of MIT or Apache 2.0 licensing.
This suits a solo project that needs consistent release notes without a separate service. Custom parsers can accommodate existing commit conventions, and path filters can narrow the changelog to one part of a larger repository.
Caveat: The documented default filters out nonconforming commit messages; review that setting or changes can disappear from the generated notes.
Discovered via this r/BestGitHubRepos thread.