| name | bump-version |
| description | Bump the zigporter version and update CHANGELOG.md. Analyses unreleased commits to determine the correct semver bump, moves [Unreleased] entries to the new version section, fixes comparison links, and commits. Does NOT tag or push — follow with the tagging steps in guides/publishing.md.
|
Steps
- Find the last released version and tag
git tag --sort=-version:refname | head -1
grep '^version' pyproject.toml
- List commits since the last tag
git log <last-tag>..HEAD --oneline
-
Determine the semver bump using these rules:
feat: commits → minor bump (0.x.0)
fix: / docs: / chore: only → patch bump (0.0.x)
- Any breaking change indicator (
! after type, or BREAKING CHANGE in body) → major bump
- If
[Unreleased] in CHANGELOG.md is empty, ask the user what version to target before proceeding.
-
Update pyproject.toml — change version = "X.Y.Z" to the new version.
-
Update CHANGELOG.md:
-
Show a diff summary of both files and confirm with the user before committing.
-
Commit (only after user confirms):
git add pyproject.toml CHANGELOG.md
git commit -m "chore: bump version to X.Y.Z"
- Remind the user of the next steps from
guides/publishing.md:
Next: git tag vX.Y.Z && git push origin main && git push origin vX.Y.Z