mirror of
https://github.com/0xrsydn/idx-cli.git
synced 2026-11-07 09:45:36 +00:00
fix(changelog): refuse to release a version older than the newest
`release 0.4.9` on a changelog topped by 0.5.0 wrote the section above it with a backwards compare link and deleted the entries; `check` caught the file only afterwards (Pullfrog on #82). The version is now compared before anything is written. Also: the #78 entry names the calendar's open offers and the session API's read-path allowlist, added there since. Claude-Session: https://claude.ai/code/session_01RqPPVeVDrnLoP7NUZmLRxY
This commit is contained in:
parent
809966925e
commit
eb4e2d4162
3 changed files with 27 additions and 3 deletions
|
|
@ -188,6 +188,13 @@ EOF
|
|||
if changelog release 0.5.0 2026-11-06 >/dev/null 2>&1; then
|
||||
fail "release accepted a version already released"
|
||||
fi
|
||||
if err="$(changelog release 0.4.9 2026-11-06 2>&1)"; then
|
||||
fail "release accepted a version older than the newest"
|
||||
elif ! grep -q "older than 0.5.0" <<<"$err"; then
|
||||
fail "release of an older version said: ${err}"
|
||||
fi
|
||||
[[ -f "$work/changes/unreleased/again.md" ]] || fail "a refused release deleted the entries"
|
||||
diff -q "$expected" "$work/CHANGELOG.md" >/dev/null || fail "a refused release changed CHANGELOG.md"
|
||||
rm "$work/changes/unreleased/again.md"
|
||||
if changelog release 0.5.1 >/dev/null 2>&1; then
|
||||
fail "release accepted no entries"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue