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
Commit 5b4e513
Browse filesBrowse the repository at this point in the historyBrowse files
ci: remove changelog rollover from release workflow (#97)
The changelog-rollover job committed a "roll [Unreleased] over to vX.Y.Z"
change directly back to main after publishing. Branch protection rejects
that push (required workflow not satisfied, changes must go through a PR,
commits must be signed), so the job failed every release without adding
value.
Remove the job and its scripts/rollover-changelog.sh helper. Maintainers
now rename `## [Unreleased]` to `## [X.Y.Z] — DATE` by hand in the
version-bump PR. The version job's CHANGELOG check is simplified to
require an explicit `## [X.Y.Z]` heading (it no longer accepts a
non-empty [Unreleased] section as a stand-in for the post-publish stamp).
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
# 2. The `## [Unreleased]` section is non-empty — the
50
-
# post-publish `changelog-rollover` job stamps it as
51
-
# `## [X.Y.Z] — DATE` after publishing.
46
+
# A release requires an explicit `## [X.Y.Z]` / `## X.Y.Z` heading
47
+
# (notes written by hand in the version-bump PR).
52
48
if grep -qE "^## \[?${VERSION}\]?( |$)" CHANGELOG.md; then
53
49
echo "Found explicit CHANGELOG heading for ${VERSION}."
54
50
exit 0
55
51
fi
56
-
unreleased_content=$(awk '
57
-
/^## \[Unreleased\]/ { inblock=1; next }
58
-
inblock && /^## / { inblock=0 }
59
-
inblock && NF { print }
60
-
' CHANGELOG.md)
61
-
if [ -n "$unreleased_content" ]; then
62
-
echo "No explicit ${VERSION} heading, but [Unreleased] has content — it will be rolled over after publish."
63
-
exit 0
64
-
fi
65
52
echo "::error::CHANGELOG.md has no release notes for ${VERSION}."
66
-
echo "::error::Add entries under \`## [Unreleased]\` (preferred — they roll over automatically), or a \`## [${VERSION}] — $(date +%Y-%m-%d)\` heading, before re-running."
53
+
echo "::error::Add a \`## [${VERSION}] — $(date +%Y-%m-%d)\` heading with release notes before re-running."
0 commit comments