Repository navigation
fix(ci): prevent release notes override by workflow - #877
Merged
Merged
Conversation
- If RELEASE_NOTES.md exists in repo root, use it as release body - Fall back to CHANGELOG auto-generation if file is absent - Fix release title: 'Release vX.Y.Z' → 'vX.Y.Z' (title set via gh CLI) - Add RELEASE_NOTES.md template for future releases Root cause: softprops/action-gh-release@v2 overwrites manually edited release notes every time CI runs. This caused the v0.12.0 release notes to be overwritten with raw CHANGELOG text + broken template (empty binary names, ANSI escape codes from install.sh test output).
| echo "" >> release-notes.md | ||
| cat >> release-notes.md << RELEASEEOF | ||
| # Prefer committed RELEASE_NOTES.md (copywriting quality, manual curation) | ||
| if [ -f RELEASE_NOTES.md ]; then |
🔍 Cora AI Code ReviewReview powered by cora-code · BYOK · MIT |
Cora found that the template file (with vX.Y.Z, #NNN, etc.) would be used as-is if a maintainer tags without editing it first. Now the workflow checks for placeholder patterns and fails fast with an actionable error message.
ajianaz
added a commit
that referenced
this pull request
Aug 13, 2026
* fix(ci): prefer RELEASE_NOTES.md over auto-generated release body - If RELEASE_NOTES.md exists in repo root, use it as release body - Fall back to CHANGELOG auto-generation if file is absent - Fix release title: 'Release vX.Y.Z' → 'vX.Y.Z' (title set via gh CLI) - Add RELEASE_NOTES.md template for future releases Root cause: softprops/action-gh-release@v2 overwrites manually edited release notes every time CI runs. This caused the v0.12.0 release notes to be overwritten with raw CHANGELOG text + broken template (empty binary names, ANSI escape codes from install.sh test output). * fix(ci): guard RELEASE_NOTES.md against unresolved placeholders Cora found that the template file (with vX.Y.Z, #NNN, etc.) would be used as-is if a maintainer tags without editing it first. Now the workflow checks for placeholder patterns and fails fast with an actionable error message. --------- Co-authored-by: ajianaz <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Fix
release.ymlCI workflow that overwrites manually curated release notes.Changes
RELEASE_NOTES.md— If committed in repo root, use it as release body instead of auto-generating from CHANGELOGRELEASE_NOTES.mdis absent, auto-generate as before (no breakage)"Release vX.Y.Z"to just"vX.Y.Z"(cleaner, title is set viaghCLI or GitHub UI anyway)RELEASE_NOTES.mdtemplate — Copywriting-style template for future releasesWhy
The
softprops/action-gh-release@v2action withbody_pathoverwrites the release body every time CI runs. This caused the v0.12.0 release notes to be replaced with:install.shtest outputManual
gh release editfixes were immediately overwritten by the next CI run.Testing