Skip to content

fix(release): tolerate NO_COMMITS_TO_BUMP on chore/docs-only pushes - #6

Merged
mrn-dk merged 1 commit into
mainfrom
fix/release-no-raise
Aug 2, 2026
Merged

mrn-dk merged 1 commit into
mainfrom
fix/release-no-raise

Conversation

@mrn-dk

@mrn-dk mrn-dk commented Aug 2, 2026

Copy link
Copy Markdown
Owner

Validates task 4.4. The previous merge (chore: mark ... verified) failed the release.yml bump job with exit code 21 — cz bump treats "no eligible commits since last tag" as an error, not a no-op.

Fix: cz -nr 21 bump --yes --changelog — the --no-raise 21 turns NO_COMMITS_TO_BUMP into a clean exit 0, so the existing tag-check step detects "no tag created" and skips publish. Non-bumpable (chore:/docs:-only) merges now correctly produce no release.

OpenSpec change: add-release-pipeline

cz bump exits 21 (NO_COMMITS_TO_BUMP) when the only commits since the last
tag are non-bumpable (pure chore:/docs:). It is an error, not a no-op, so a
chore-only merge to main failed the bump job. Use -nr 21 to turn that exit
code into a clean 0; the existing tag-check step then detects 'no release'
and skips publish.
@mrn-dk
mrn-dk merged commit d9e23f7 into main Aug 2, 2026
1 check passed
@mrn-dk
mrn-dk deleted the fix/release-no-raise branch August 3, 2026 10:17
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