From eaff288dfa8866b25420f7bd7d3ed450492813a8 Mon Sep 17 00:00:00 2001 From: Ayla Croft Date: Sat, 5 Dec 2026 08:45:20 -0500 Subject: [PATCH 1/2] ci(deps): keep the React fixture's react and react-dom on 18.x react and react-dom serve only the e2e fixture react-list.html, a React 18 app loaded from React 18's UMD builds. React 19 ships no UMD builds, so Dependabot's react-dom 19 bump (#71) leaves the page without React and the corpus tests fail. Dependabot now skips their major versions and still proposes 18.x patches. React 19 coverage needs its own fixture package: npm can't hold a second React next to the first in the root package.json, because react-dom 19's react peer has to resolve to the root react (SCR-464). Co-Authored-By: Claude Opus 5.5 Signed-off-by: Ayla Croft --- .github/dependabot.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 8df8bb0..2319a79 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -14,6 +14,15 @@ updates: groups: npm-minor-and-patch: update-types: [minor, patch] + # react and react-dom serve only the e2e fixture test/fixtures/pages/react-list.html, + # which is a React 18 app on purpose (React 18's UMD builds load without a bundler; + # React 19 has none). React 19 coverage is a second fixture of its own (SCR-464), so + # these stay on 18.x and get its patches. + ignore: + - dependency-name: react + update-types: ["version-update:semver-major"] + - dependency-name: react-dom + update-types: ["version-update:semver-major"] # The docs site (slice 44) has its own package.json and lockfile. - package-ecosystem: npm directory: /site From da7ee376df5c407f9dc76e994feb0eb91793a823 Mon Sep 17 00:00:00 2001 From: Ayla Croft Date: Sat, 5 Dec 2026 08:49:55 -0500 Subject: [PATCH 2/2] ci(release): refuse to tag while the CHANGELOG lists an entry twice A pull request merged with a merge commit reaches release-please twice: as its own commit and as the merge commit, whose body is the PR's title. When the two read the same, the release section lists the entry twice with different hashes. The 1.0.2 release PR (#46) has two such pairs. release-notes.mjs --check, which tag-release.sh runs before tagging, now names each repeated entry, so the notes are deduplicated in the release PR along with the plain-language summary. Co-Authored-By: Claude Opus 5.5 Signed-off-by: Ayla Croft --- scripts/release-notes.mjs | 10 ++++++++++ test/unit/release-notes.test.mjs | 12 ++++++++++++ 2 files changed, 22 insertions(+) diff --git a/scripts/release-notes.mjs b/scripts/release-notes.mjs index 36331c2..44d6630 100755 --- a/scripts/release-notes.mjs +++ b/scripts/release-notes.mjs @@ -66,6 +66,16 @@ export function checkChangelog(text, version) { "(they're the plain-language notes learners read) in the release PR, then tag.", ); } + // A pull request merged with a merge commit reaches release-please twice: as its commit, + // and as the merge commit, whose body is the PR's title. When the two read the same, the + // entry is listed twice (with different hashes); keep one in the release PR. + const seen = new Set(); + for (const line of section.split("\n")) { + const entry = /^\* (.+?)(?: \(\[[0-9a-f]{7,40}\]\([^)]*\)\))?$/.exec(line.trim())?.[1]; + if (!entry) continue; + if (seen.has(entry)) problems.push(`The ${version} section lists "${entry}" more than once. Keep one in the release PR.`); + seen.add(entry); + } if (/^#{2,4} .*BREAKING CHANGES/m.test(section) && !/^#{2,4} Upgrade notes\b/im.test(section)) { problems.push( `The ${version} section has breaking changes but no "### Upgrade notes" (what changed, who is affected, the steps; slice 30 ยง11).`, diff --git a/test/unit/release-notes.test.mjs b/test/unit/release-notes.test.mjs index 64c5ed6..ae9e56c 100644 --- a/test/unit/release-notes.test.mjs +++ b/test/unit/release-notes.test.mjs @@ -63,6 +63,18 @@ test("tagging is refused without a section, with leftovers under Unreleased, or assert.match(checkChangelog(RELEASED, "v0.3.0")[0], /isn't a release version/); }); +test("tagging is refused while an entry is listed twice (a PR's commit and its merge commit)", () => { + const twice = RELEASED.replace( + "* **extension:** bulk add ([ff493a9](https://github.com/ScriptKittyOS/kotiko/commit/ff493a9))", + "* **extension:** bulk add ([ff493a9](https://github.com/ScriptKittyOS/kotiko/commit/ff493a9))\n" + + "* **extension:** bulk add ([1234abc](https://github.com/ScriptKittyOS/kotiko/commit/1234abc))", + ); + const problems = checkChangelog(twice, "0.3.0"); + assert.equal(problems.length, 1); + assert.match(problems[0], /lists "\*\*extension:\*\* bulk add" more than once/); + assert.deepEqual(checkChangelog(RELEASED, "0.3.0"), [], "one of each passes"); +}); + test("release candidates are tagged before their CHANGELOG section exists", () => { assert.deepEqual(checkChangelog("# Changelog\n\n## Unreleased\n\n- wip\n", "0.3.0-rc.1"), []); });