Template
fix(ci): make changelog promotion idempotent and structure-preserving #68
Reference in New Issue
Block a user
Delete Branch "fix/changelog-promote-structure"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes the auto-release
Update release notes and promote changelogstep, whose blindcontent.replace('## [Unreleased]', ...)injected an empty version header, pushed the intro below the section headers, and compounded on re-runs (observed on MokoSuiteStoreLocator: intro below two[01.04.00]headers).The step now parses the changelog into a top header block plus
## [sections and promotes only when[Unreleased]has real content (a###subheading or a bullet), moving that content under a new version header and leaving[Unreleased]empty. Re-runs and empty[Unreleased]leave the file byte-identical (EOL-preserving), so CI produces no spurious commit. Validated against three cases: content->promote, re-run->no-op, empty->no-op.Template-level fix (sync-overwrites consuming repos). Other Joomla repos likely have the same CHANGELOG corruption and may need a one-time cleanup.
Authored-by: Moko Consulting