releases/release-all.sh stopped when the Upcoming section had no entries, no
**In short:** summary, or a Translations group without its
**Languages updated:** line, and releases/release-notes.sh failed on the
same in the workflow. Now only the "# Upcoming WeKan ® release" heading is
required - it is what becomes the new version. A missing part is a warning,
and the release notes leave it out: no In short section without a summary,
no language list without one (the translators are still thanked), and an
empty section still gets the thanks and the ChangeLog link.
Thanks to xet7 !
Use existing native date formatting instead of the removed Moment dependency. Check real Upcoming entries before release tool installation or mutations, including explicit version overrides. Cover missing, empty and duplicate notes with read-only regression tests.
The next release version was computed by measuring the gap between the two
newest "# vNN.MM" headings in CHANGELOG.md and re-applying that same gap,
instead of always advancing by one. That is not self-correcting: if a release
number was ever prepared and never published, and its CHANGELOG section was
deleted outright instead of renamed back to "# Upcoming WeKan (R) release"
(this script's own documented recovery for a release that never published),
the two remaining headings were left 2 apart. The script read that as "the
cadence is +2 now" and reapplied it every following release, turning one
incident into a permanent, ever-widening habit of skipping a number - exactly
how v11.56 -> v11.58 -> v11.60 -> v11.62 happened, silently skipping v11.57,
v11.59 and v11.61 (v11.33 and v11.54 were skipped by the same bug earlier).
The step is now a fixed +1 with no history lookup, and the other code path
(resuming an already-renamed release) hard-fails instead of printing
"proceeding anyway" when the newest heading is not exactly +1 from the
previous one, so a future gap is caught before it can be built on.
tests/releaseAllVersionStep.test.cjs pins the fixed +1 step and the hard
failure. The GitHub workflow itself (release-all.yml) needed no change: it
only ever uses the old_version/new_version this script hands it and never
computes a step of its own.
Thanks to xet7.