Skip to content

feat(org-bootstrap): create the orphan badges branch in the branches step - #413

Merged
Shinrai merged 1 commit into
nextfrom
feat/bootstrap-badges-branch
Nov 1, 2026
Merged

Shinrai merged 1 commit into
nextfrom
feat/bootstrap-badges-branch

Conversation

@cldmv-bot

@cldmv-bot cldmv-bot Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

🚀 What's Changed

💥 Breaking Changes

No breaking changes

✨ Features

  • feat(org-bootstrap): create the orphan badges branch in the branches step (77b9b57)

🐛 Bug Fixes

No bug fixes

📦 Dependencies

No dependency updates

🔧 Other Changes

No other changes

👥 Contributors

…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
@cldmv-bot cldmv-bot Bot added ! feature → next v4 flow: contributor PR targeting the next integration branch type: feature Implements new functionality — a PR or issue that adds a feature area: core Touches core library / runtime source code area: tests Touches test files, fixtures, or test infrastructure type: config Changes to repository or project configuration files type: documentation Relates to docs, README updates, guides, or inline code comments labels Nov 1, 2026
@Shinrai
Shinrai merged commit d4f35f2 into next Nov 1, 2026
17 checks passed
@cldmv-bot
cldmv-bot Bot deleted the feat/bootstrap-badges-branch branch November 1, 2026 23:27
cldmv-bot Bot added a commit that referenced this pull request Nov 1, 2026
# v4.35.0 — 2026-11-01

Minor release. Org bootstrap now creates the orphan `badges` branch, 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 to `hotfixes`, and raises the default CI test floor to Node.js 22.22.0.

## Added

- **Org bootstrap creates the `badges` branch.** The `branches` step of `org-bootstrap-repo` now creates the orphan `badges` branch the coverage-badge job pushes to, holding only a short README, when the repo doesn't have one. An existing `badges` branch is never reset. Two new inputs control it: `badges_branch` (default `badges`) and `create_badges_branch` (default `true`). Under dry-run the step only logs what it would create. Fixes [#403](#403). ([#413](#413))
- **The pre-commit hook can check staged files only.** `examples/git-hooks/pre-commit` (and this repo's `.githooks/pre-commit`) passes the staged paths to optional `lint:staged` and `format:check:staged` npm scripts when a repo defines them. Repos without them keep running the whole-repo `lint` and `format:check`. `docs/conventions/lint-format-precommit.md` documents the scripts, including a note that `xargs` may split a very large staged list across several runs. Fixes [#401](#401). ([#414](#414))
- **README template and format convention.** `examples/readme/README.template.md` is 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.md` describes the sections and is linked from the README, `examples/README.md` and the release-flow doc. Wiring the template into scaffolding is listed there as follow-up. Fixes [#404](#404). ([#415](#415))

## Fixed

- **The label catalog is validated before the org label sync starts.** `sync-org-labels` checks every entry in `data/github-labels.json` first: 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.mjs` uses the same check. Fixes [#402](#402). ([#412](#412))
- **Routine Dependabot bumps stay on `next` when 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-runner` bump was redirected to `hotfixes` that 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](#409). ([#410](#410))
- **The CI test matrix starts at Node.js 22.22.0.** The `min_node_version` default in `workflow-ci.yml`, `workflow-release.yml` and `reusable-build-and-test.yml`, and in the `ci.yml`, `publish.yml` and `release.yml` templates, moves from 22.12.0 to 22.22.0, the fleet floor the dev toolchain needs. ([#408](#408))

## Documentation

- **Package layout convention drops devcheck.** `docs/conventions/package-layout.md` no longer describes a root `devcheck.mjs`: the `<pkg>-dev` condition picks `src/` or `dist/`, and both are legitimate. It also sets `engines.node` to `>=22.22.0` and shows building the vitest condition settings with `devCondition()`, passing the worker flag through `test.execArgv`. ([#407](#407))

## Dependencies

- Dev toolchain bumped to latest: `eslint` 10.14, `prettier` 3.9.10, `@eslint/css` 2, `@eslint/json` 2.1, `globals` 17.14 and the `@cldmv` jsonv packages. ([#416](#416))
- `overrides` pin `katex` to `>=0.19.1 <1.0.0` and `minimatch` to `^11.0.3`, the patched versions of the transitive dependencies pulled in by the eslint and `@eslint/markdown` chain. ([#417](#417))

## Upgrade notes

- No breaking changes. Consumers get the bootstrap, redirector and CI changes through the rolling `@v4` tag once `v4` points at this release.
- A repo that pins `min_node_version` in its own `ci.yml` keeps that value. Raise it to `22.22.0` to match the fleet floor.
- To use staged-only pre-commit checks, copy the updated hook into the repo's `.githooks/` and add `lint:staged` / `format:check:staged` scripts as shown in the convention doc.



<details>
<summary>👥 Contributors</summary>

- @Shinrai

</details>

<!-- co-authors -->

Co-authored-by: Shinrai <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: core Touches core library / runtime source code area: tests Touches test files, fixtures, or test infrastructure ! feature → next v4 flow: contributor PR targeting the next integration branch type: config Changes to repository or project configuration files type: documentation Relates to docs, README updates, guides, or inline code comments type: feature Implements new functionality — a PR or issue that adds a feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant