Repository navigation
release: v4.35.0 - scope the pre-commit check to staged files through… - #411
Merged
Merged
Conversation
…the worker flag through execArgv test.nodeOptions isn't a Vitest option, so the documented block never reached the workers.
The dev toolchain (chokidar 6, tsup 9) needs Node 22.22, so packages can't test or claim anything older.
The CLDMV dev toolchain (chokidar 6, tsup 9) needs Node 22.22, so a matrix starting at 22.12 fails on its lowest job. Changes min_node_version in the reusable workflows and the core-cicd example callers.
…A id The redirector treated any GHSA id in a Dependabot PR body as a security update, even when the PR already targeted the routine target-branch. Dependabot copies upstream release notes into the body, so a routine bump whose upstream changelog names an advisory got moved to hotfixes. With a known target-branch the base alone now decides; the body check only runs when no target-branch is configured. Also runs the redirect tests in npm test. Fixes #409
…ptional lint:staged / format:check:staged scripts The pre-commit hook now passes the staged paths (NUL-delimited, safe for spaces) to `lint:staged` and `format:check:staged` when package.json defines them, each independently replacing `lint` / `format:check`. Without them the whole-repo scripts run as before. Nothing staged skips the staged scripts. The hook stays check-only and `precommit:local` still runs last. The repo's own .githooks/pre-commit is kept identical to the example, and the lint-format-precommit convention doc describes the new scripts. Closes #401
…step The branches step now also creates the orphan badges branch the coverage badge job pushes to: a parentless commit holding a placeholder README, made through the Git Data API. An existing badges branch is left alone. New inputs badges_branch (default badges) and create_badges_branch (default true) allow renaming or opting out. dry_run is honoured. Closes #403
…repo The sync now checks data/github-labels.json against GitHub's label limits (name 50 and description 100 code points, 6-hex colour) and for a name or alias owned by two labels, and exits once with an annotated error before any API call. The catalog test uses the same validator, so the two can't drift. The description fix and console logging from the issue already shipped in v4.34.0 (#398). Closes #402
Adds examples/readme/README.template.md, the shared package README skeleton with the reference-style badge footer, and docs/conventions/readme-format.md describing the format. Closes #404
katex 0.19.1+ and minimatch 11.0.3+ clear the dev-only advisories that come in through eslint and @eslint/markdown; the same overrides fix-headers carries.
…t:staged / format:check:staged scripts (#414)
Shinrai
approved these changes
Nov 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
v4.35.0 — 2026-11-01
Minor release. Org bootstrap now creates the orphan
badgesbranch, the pre-commit hook can check only staged files, and a new README template and format convention cover CLDMV packages. It also validates the label catalog before the org label sync touches any repo, stops routine Dependabot bumps from being redirected tohotfixes, and raises the default CI test floor to Node.js 22.22.0.Added
badgesbranch. Thebranchesstep oforg-bootstrap-reponow creates the orphanbadgesbranch the coverage-badge job pushes to, holding only a short README, when the repo doesn't have one. An existingbadgesbranch is never reset. Two new inputs control it:badges_branch(defaultbadges) andcreate_badges_branch(defaulttrue). Under dry-run the step only logs what it would create. Fixes #403. (#413)examples/git-hooks/pre-commit(and this repo's.githooks/pre-commit) passes the staged paths to optionallint:stagedandformat:check:stagednpm scripts when a repo defines them. Repos without them keep running the whole-repolintandformat:check.docs/conventions/lint-format-precommit.mddocuments the scripts, including a note thatxargsmay split a very large staged list across several runs. Fixes #401. (#414)examples/readme/README.template.mdis the standard layout for a CLDMV package README, with the full badge set and placeholders for package name, default branch and content sections.docs/conventions/readme-format.mddescribes the sections and is linked from the README,examples/README.mdand the release-flow doc. Wiring the template into scaffolding is listed there as follow-up. Fixes #404. (#415)Fixed
sync-org-labelschecks every entry indata/github-labels.jsonfirst: name and description lengths against GitHub's limits, a six-digit hex colour, aliases as a list of strings, and no name or alias claimed by two labels. Any problem is reported as an error annotation and the job exits before a single repo is touched, instead of failing with HTTP 422 in every repo as the over-long description in v4.33.0 did.data/github-labels.test.mjsuses the same check. Fixes #402. (#412)nextwhen the body quotes a GHSA id. The hotfix redirector treated any GHSA id in a Dependabot PR body as a security update, and Dependabot copies upstream release notes into the body, which often name advisories. A routine@cldmv/vitest-runnerbump was redirected tohotfixesthat way. When the repo's routine Dependabot target is known, the PR's base branch alone now decides. The body is only checked when the target is unknown. Fixes #409. (#410)min_node_versiondefault inworkflow-ci.yml,workflow-release.ymlandreusable-build-and-test.yml, and in theci.yml,publish.ymlandrelease.ymltemplates, moves from 22.12.0 to 22.22.0, the fleet floor the dev toolchain needs. (#408)Documentation
docs/conventions/package-layout.mdno longer describes a rootdevcheck.mjs: the<pkg>-devcondition pickssrc/ordist/, and both are legitimate. It also setsengines.nodeto>=22.22.0and shows building the vitest condition settings withdevCondition(), passing the worker flag throughtest.execArgv. (#407)Dependencies
eslint10.14,prettier3.9.10,@eslint/css2,@eslint/json2.1,globals17.14 and the@cldmvjsonv packages. (#416)overridespinkatexto>=0.19.1 <1.0.0andminimatchto^11.0.3, the patched versions of the transitive dependencies pulled in by the eslint and@eslint/markdownchain. (#417)Upgrade notes
@v4tag oncev4points at this release.min_node_versionin its ownci.ymlkeeps that value. Raise it to22.22.0to match the fleet floor..githooks/and addlint:staged/format:check:stagedscripts as shown in the convention doc.👥 Contributors
Co-authored-by: Shinrai [email protected]