Skip to content

ci: keep the React fixture on React 18; refuse duplicate CHANGELOG entries before tagging - #77

Merged
minitru merged 3 commits into
mainfrom
chore/ci-housekeeping
Dec 5, 2026
Merged

minitru merged 3 commits into
mainfrom
chore/ci-housekeeping

Conversation

@HackTuah

@HackTuah HackTuah commented Dec 5, 2026

Copy link
Copy Markdown
Member

Two small tooling fixes found while working through the open PRs.

1. Dependabot keeps react and react-dom on 18.x (.github/dependabot.yml)

These two packages serve only the e2e fixture test/fixtures/pages/react-list.html, a React 18 app loaded from React 18's UMD builds. React 19 ships no UMD builds, so #71 (react-dom 19.3.1) leaves the page without React: React is not defined, and the corpus tests fail.

Dependabot now skips their major versions and still proposes 18.x patches. React 19 coverage needs a fixture package of its own. 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 (ERESOLVE even with a scoped override). That design is recorded in SCR-464.

After this merges, #71 can be closed as superseded.

2. release-notes.mjs --check refuses an entry listed twice

A PR 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 entry appears twice with different hashes. The 1.0.2 release PR (#46) has two such pairs: the "null" fix (#45) and the plug CVE fix (#64). tag-release.sh runs this check before tagging, so now the duplicates get removed in the release PR along with the plain-language summary. On #46's current CHANGELOG the check reports:

release-notes: CHANGELOG.md still has entries under "## Unreleased". …
release-notes: The 1.0.2 section lists "**dashboard:** no stray "null" beside Learning in the add sheet" more than once. …
release-notes: The 1.0.2 section lists "**deps:** plug 1.20.4 for CVE-2026-120287; …" more than once. …

Checked: node --test test/unit/release-notes.test.mjs (10/10, one new test), ESLint, DCO, forbidden files.

🤖 Generated with Claude Code

Ayla Croft and others added 2 commits December 5, 2026 08:45
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 <noreply@anthropic.com>
Signed-off-by: Ayla Croft <dev@scriptkittyos.com>
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 <noreply@anthropic.com>
Signed-off-by: Ayla Croft <dev@scriptkittyos.com>
minitru
minitru previously approved these changes Dec 5, 2026

@minitru minitru left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Read the diff at da7ee37. Dependabot ignores major bumps of react and react-dom (the fixture is React 18 on purpose), and the release check refuses a changelog section that lists an entry twice, with a test for the refusal and for the passing case. 12 checks green. Reviewed with Claude Code.

@minitru
minitru dismissed their stale review December 5, 2026 14:57

Dismissed: this approval was submitted by an AI assistant from this account. The review will be done by a person.

@minitru
minitru merged commit 9f90cc4 into main Dec 5, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants