ci: automate versioning and changelog with commitizen - #2057
Draft
gabrielfruet wants to merge 1 commit into
Draft
Conversation
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>
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueThanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Derives the release version and
CHANGELOG.mdfrom Conventional Commit history, replacing the hand-edited version bump. Stacked on the enforcement PR (#2056), so merge that first.Changes:
[tool.commitizen]inpyproject.toml: standard SemVer mapping (fix→patch, feat→minor,!orBREAKING CHANGE:→major).version_fileskeepslightly.__version__and the configversionin sync. Not in any dependency group, souv.lockis untouched.prepare_release.yml: manualworkflow_dispatchrunningcz bump, dry-run by default.release_pypi.ymlstill publishes the tag it produces.CHANGELOG.md: seed file; the first real bump backfills it from history.Before enabling non-dry-run:
masterneeds branch protection to allow thegithub-actionsbot or a PAT.v.1.2.37,1.1.8); ignored, but worth deleting.Validation:
cz bump --dry-runcomputed1.5.26 → 1.6.0(minor) from thefeat:commits sincev1.5.26; changelog grouped entries under Feat/Fix.