Skip to content

Format release notes with Snapper after Towncrier - #3296

Merged
adamtheturtle merged 3 commits into
mainfrom
towncrier-semantic-lines
Oct 10, 2026
Merged

adamtheturtle merged 3 commits into
mainfrom
towncrier-semantic-lines

Conversation

@adamtheturtle

@adamtheturtle adamtheturtle commented Oct 10, 2026 •

Copy link
Copy Markdown
Member

The release workflow currently commits Towncrier's generated Markdown before Snapper formats it. The resulting changelog can fail the semantic line break checks on main and on later PRs.

Run Snapper immediately after Towncrier and before copying the changelog into release-notes.md. The committed changelog and GitHub release body therefore use the same formatted content. This uses the same pinned Snapper dependency and command flags as the formatting hook. Towncrier keeps its default template and existing heading configuration.

Validation: generated release notes through towncrier build --yes in a temporary Git repository with 11 current, historical, and edge-case fragments; formatted with Snapper 0.11.9; confirmed Snapper's check passes and the copied release notes are byte-identical. Actionlint, applicable YAML formatting checks, and git diff --check passed. The intended change is confined to the release workflow.

Preserves the automated Snapper repair to the existing changelog, which was needed for the formatting checks.

@autofix-ci
autofix-ci Bot deployed to development October 10, 2026 12:01 Active
@adamtheturtle adamtheturtle changed the title Generate release notes with semantic line breaks Format release notes with Snapper after Towncrier Oct 10, 2026
@adamtheturtle
adamtheturtle merged commit a158f72 into main Oct 10, 2026
13 checks passed
@adamtheturtle
adamtheturtle deleted the towncrier-semantic-lines branch October 10, 2026 12:23

This branch was successfully deployed

1 active deployment
development — 987c6250 Deployed Oct 10, 2026 by adamtheturtle via pages #1166
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