A feat: commit for repo tooling makes bump-version.sh auto propose a minor bump
PitfallVerified 30 Sep 2026Holds project: pydftracer
Pitfall. The symptom, what causes it, and the fix that was run and seen to work.
Symptom#
scripts/bump-version.sh auto proposes 2.0.4 -> 2.1.0 when only a patch release was meant.
Cause#
auto derives the next tag from the conventional-commit prefixes since the last tag, and any feat: commit forces a minor bump. A feat: add scripts/bump-version.sh commit on develop triggered it.
Fix#
Use chore: or ci: for repo tooling, CI and license changes that add no user-facing feature. Merged history is not rewritten. Pass the version explicitly instead: scripts/bump-version.sh 2.0.5 --tag. Once that tag exists, auto counts only newer commits.
Evidence#
Observer note, 2026-09-30, pydftracer develop: auto proposed 2.0.4 -> 2.1.0 after the feat: commit for the script.
Also found by searching
- scripts/bump-version.sh auto proposes 2.0.4 -> 2.1.0, expected patch
- version bump script wants a minor release though only fixes were merged
- which conventional commit prefix for repo tooling so auto bump stays patch
- feat: commit for CI scripts triggers semver minor, pass version explicitly --tag
- scripts/bump-version.sh auto proposes 2.0.4 -> 2.1.0 but I only wanted a patch release
- auto version bump jumps to minor because of a feat: commit adding a script
- how do I get a patch bump when a commit with feat: prefix was only tooling?
- conventional commits feat triggers minor bump in bump-version.sh, pass explicit version --tag