Repository navigation
fix(release): match changelog replacement prefixes literally - #1763
John-David Dalton (jdalton) wants to merge 1 commit into
Conversation
PR SummaryLow Risk Overview
Reviewed by Cursor Bugbot for commit 36c2bc6. Configure here. |
| throw new Error( | ||
| `[add-unreleased] unknown flag ${arg}.\n` + | ||
| ' Known: --file, --replace, --section.', | ||
| ' Known: --file, --replace-prefix, --section.', |
There was a problem hiding this comment.
[agent] Coana’s publish workflow checks out v1.x and still passes --replace, which this parser rejects. Once this lands, a release that needs a Socket CLI bump will fail before opening the PR. Can we make the workflow handle both flag versions before merging, or temporarily accept the exact legacy Coana argument as a literal prefix?
Dependency bumps can still rewrite their existing Unreleased note in place. Switch the release helper from a command-line regex to a literal
--replace-prefixand update the Coana and socket-patch examples. This removes the regex injection flagged by CodeQL alert #14.