Skip to content

Guard the changelog entry, not the composed release note - #33

Merged
DeliriumPulse merged 1 commit into
mainfrom
fix/release-notes-guard
Aug 7, 2026
Merged

Guard the changelog entry, not the composed release note#33
DeliriumPulse merged 1 commit into
mainfrom
fix/release-notes-guard

Conversation

@DeliriumPulse

Copy link
Copy Markdown
Collaborator

The [ ! -s release-notes.md ] check ran after the install heredoc had been appended inside the same redirect group, so the file was never empty and the guard could not fire. A release whose version had no changelog entry would publish a note containing only install steps.

Extraction now writes changelog-entry.md and is tested before composition.

Verified both directions rather than assuming: VERSION=0.2.41 exits 0 and produces notes with exactly one install section; VERSION=9.9.9 exits 1 with the intended message. Before this change the second case exited 0.

🤖 Generated with Claude Code

The emptiness check ran after the install section had already been appended
inside the same redirect group, so release-notes.md always had content and the
guard could never fire. A version missing its changelog entry would have
published a release note containing nothing but install instructions.

The extraction now writes its own file and is tested before composition.
Verified both directions: an existing version composes notes with exactly one
install section and exits 0; a version absent from the changelog exits 1 with
the intended message.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@DeliriumPulse
DeliriumPulse merged commit 26c7315 into main Aug 7, 2026
9 checks passed
@DeliriumPulse
DeliriumPulse deleted the fix/release-notes-guard branch August 7, 2026 18:15
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