You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] prepare-release PR-body extraction truncates at inline '## [' in changelog bullets #620
The "Extract CHANGELOG content for PR body" step in prepare-release truncates
the release PR body when a ## [X.Y.Z] version entry contains the literal text ## [ anywhere in its bullets (e.g. a changelog entry that quotes a heading like `## [X.Y.Z] - TBD`). Everything after that inline match is dropped from the
PR body.
Observed (0.3.8)
The release PR (#619) body rendered only the first changelog bullet:
— omitting the rest of #617 and the entire #612 entry. The CHANGELOG on release/0.3.8 is correct; only the extracted PR body is truncated.
Root cause
CHANGELOG_CONTENT=$(sed -n "/## \[$VERSION\]/,/## \[/p" CHANGELOG.md | sed '$d')
The range-end pattern /## \[/ is unanchored, so it matches the first line
containing ## [anywhere, including inline backtick-quoted text inside a
bullet. The range therefore closes early and the tail of the section is lost.
Proposed fix
Anchor both range patterns to the start of line so only real column-0 version
headings delimit the section:
sed -n "/^## \[$VERSION\]/,/^## \[/p" CHANGELOG.md | sed '$d'
Fixed via #621 and shipped in 0.3.8. The PR-body changelog extraction now anchors its sed range to start-of-line headings, so inline backtick-quoted ## [X.Y.Z] text no longer truncates the body. Confirmed on PR #619's refreshed body.
Activity
fix(ci): anchor changelog PR-body extraction to line-start headings
fix(ci): anchor changelog PR-body extraction to line-start headings (#…
chore: release 0.3.8 (#179)
chore: release 0.3.8 (#619)
c-vigo commentedon Jun 22, 2026
Fixed via #621 and shipped in 0.3.8. The PR-body changelog extraction now anchors its sed range to start-of-line headings, so inline backtick-quoted
## [X.Y.Z]text no longer truncates the body. Confirmed on PR #619's refreshed body.