Skip to content

feat: add changelog make target to releasing.mk using git-cliff #908

@tschm

Description

@tschm

Summary

jquantstats has added a changelog Makefile target that generates/updates CHANGELOG.md from git history using git-cliff. This is a useful generic target that should be part of the rhiza template.

Current state in jquantstats

In the repo-owned Makefile:

.PHONY: changelog
changelog: ## generate/update CHANGELOG.md from git history using git-cliff
	@printf "${BLUE}[INFO] Generating CHANGELOG.md with git-cliff...${RESET}\n"
	@${UVX_BIN} git-cliff --output CHANGELOG.md
	@printf "${GREEN}[OK] CHANGELOG.md updated.${RESET}\n"

Proposed change

Add this target to releasing.mk in the rhiza template so all downstream projects get a consistent make changelog command out of the box. It pairs naturally with the existing bump/release workflow and can hook into the CI release pipeline.

Related

  • This works alongside a cliff.toml configuration file (see companion issue for adding a cliff.toml template).
  • uvx git-cliff requires no extra install step — it follows the existing uvx-based tooling pattern.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions