fix(release): idempotent changelog promote (no duplicate version headers) #217
Reference in New Issue
Block a user
Delete Branch "fix/changelog-promote-idempotent"
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?
Local stopgap for the changelog-promote bug (the template fix is tracked separately in Template-Generic).
auto-release.ymlpromoted[Unreleased]→[version]by unconditionally inserting a## [version]header on every build. Repeated builds / same-version runs therefore appended the header again, producing the empty, duplicated version headers (e.g. two## [02.56.07], two## [02.56.08]) and the blank releases.Fix: only insert the header when
## [version]isn't already in the file (idempotent). YAML validated.⚠️
.mokogitea/workflows/auto-release.ymlis synced from the template, so this local fix will be overwritten on the next workflow sync — the durable fix is in the template (Template-Generic issue filed).https://claude.ai/code/session_01WbGBN9VyRK61zczYWcCQ2i
0c0a1334e0to129be7ef9dWiki reminder: docs are wiki-first -- if this PR changes behavior, usage, config, or standards, please update the repo wiki before/after merge. (non-blocking)