Remove mandatory Unreleased section requirement and add changelog migration automation #29

Merged
Copilot merged 5 commits from copilot/remove-unreleased-from-changelog into main 2026-01-04 04:16:58 +00:00
Showing only changes of commit c286e98212 - Show all commits

View File

@@ -124,18 +124,8 @@ fi
# Core structural checks # Core structural checks
# - Must contain at least one H2 heading with a bracketed version # - Must contain at least one H2 heading with a bracketed version
# - Must contain an Unreleased section
# - Must contain a section for the resolved version # - Must contain a section for the resolved version
unreleased_ok=false
if grep -Eq '^## \[Unreleased\]' CHANGELOG.md; then
unreleased_ok=true
fi
if [ "${unreleased_ok}" != "true" ]; then
fail "CHANGELOG.md missing '## [Unreleased]' section"
fi
if ! grep -Eq '^## \[[0-9]+\.[0-9]+\.[0-9]+\]' CHANGELOG.md; then if ! grep -Eq '^## \[[0-9]+\.[0-9]+\.[0-9]+\]' CHANGELOG.md; then
fail "CHANGELOG.md has no version sections (expected headings like: ## [x.y.z])" fail "CHANGELOG.md has no version sections (expected headings like: ## [x.y.z])"
fi fi