Skip to content

ci: automate versioning and changelog with commitizen - #2057

Draft
gabrielfruet wants to merge 1 commit into
conventional-commits-enforcefrom
conventional-commits-automate
Draft

ci: automate versioning and changelog with commitizen#2057
gabrielfruet wants to merge 1 commit into
conventional-commits-enforcefrom
conventional-commits-automate

Conversation

@gabrielfruet

Copy link
Copy Markdown
Contributor

Derives the release version and CHANGELOG.md from Conventional Commit history, replacing the hand-edited version bump. Stacked on the enforcement PR (#2056), so merge that first.

Changes:

  • [tool.commitizen] in pyproject.toml: standard SemVer mapping (fix→patch, feat→minor, ! or BREAKING CHANGE:→major). version_files keeps lightly.__version__ and the config version in sync. Not in any dependency group, so uv.lock is untouched.
  • prepare_release.yml: manual workflow_dispatch running cz bump, dry-run by default. release_pypi.yml still publishes the tag it produces.
  • CHANGELOG.md: seed file; the first real bump backfills it from history.

Before enabling non-dry-run:

  • Pushing the bump commit and tag to master needs branch protection to allow the github-actions bot or a PAT.
  • cz warns about two legacy tags (v.1.2.37, 1.1.8); ignored, but worth deleting.

Validation: cz bump --dry-run computed 1.5.26 → 1.6.0 (minor) from the feat: commits since v1.5.26; changelog grouped entries under Feat/Fix.

cz bump derives the next version and CHANGELOG.md from Conventional Commits since the last tag. Runs on manual dispatch, dry-run by default.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Sep 1, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant