From 1f05f3ff0eeb35c6737172cd139e55dd69922db6 Mon Sep 17 00:00:00 2001 From: Emilien Escalle Date: Thu, 3 Dec 2026 14:36:19 +0100 Subject: [PATCH 1/5] feat: add a shared commitlint preset --- .commitlintrc.json | 12 +- .github/dependabot.yml | 1 + .github/workflows/linter.md | 2 + .github/workflows/linter.yml | 21 ++++ .github/workflows/semantic-pull-request.md | 3 + .github/workflows/semantic-pull-request.yml | 22 ++++ Makefile | 6 +- .../quality/lint-pull-request-title/.npmrc | 1 + .../quality/lint-pull-request-title/README.md | 1 + .../lint-pull-request-title/action.yml | 1 + .../lint-pull-request-title/package-lock.json | 14 ++- .../lint-pull-request-title/package.json | 3 +- .../lint-pull-request-title/src/index.test.js | 49 +++++--- docs/adr/0004-share-commitlint-policy.md | 55 +++++++++ docs/usage/commits.md | 84 ++++++++++--- packages/commitlint-config/LICENSE | 21 ++++ packages/commitlint-config/README.md | 7 ++ packages/commitlint-config/index.json | 13 ++ packages/commitlint-config/package-lock.json | 112 ++++++++++++++++++ packages/commitlint-config/package.json | 26 ++++ 20 files changed, 409 insertions(+), 45 deletions(-) create mode 100644 actions/quality/lint-pull-request-title/.npmrc create mode 100644 docs/adr/0004-share-commitlint-policy.md create mode 100644 packages/commitlint-config/LICENSE create mode 100644 packages/commitlint-config/README.md create mode 100644 packages/commitlint-config/index.json create mode 100644 packages/commitlint-config/package-lock.json create mode 100644 packages/commitlint-config/package.json diff --git a/.commitlintrc.json b/.commitlintrc.json index c9fc5530..c2eb08b8 100644 --- a/.commitlintrc.json +++ b/.commitlintrc.json @@ -1,13 +1,3 @@ { - "extends": ["@commitlint/config-conventional"], - "rules": { - "subject-case": [ - 1, - "never", - ["sentence-case", "start-case", "pascal-case", "upper-case"] - ], - "header-max-length": [1, "always", 100], - "body-max-line-length": [1, "always", 100], - "footer-max-line-length": [1, "always", 100] - } + "extends": ["./packages/commitlint-config/index.json"] } diff --git a/.github/dependabot.yml b/.github/dependabot.yml index b6ab7bcb..439e19a3 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -43,6 +43,7 @@ updates: open-pull-requests-limit: 20 directories: - "/actions/**/*" + - "/packages/**/*" schedule: interval: weekly day: friday diff --git a/.github/workflows/linter.md b/.github/workflows/linter.md index d461e83a..3dc2ae90 100644 --- a/.github/workflows/linter.md +++ b/.github/workflows/linter.md @@ -38,6 +38,8 @@ Executes: Commitlint is disabled by default for scheduled and manual runs, and for pushes with no commits (such as creating a tag on an existing commit). Explicit `linter-env` validator settings take precedence. +If the root package.json declares @hoverkraft/commitlint-config, install the +repository's locked dependencies with lifecycle scripts disabled before linting. Include this workflow job in the outer publish-ci-reports workflow dependencies. Its report definition identifies the native Super-Linter summary automatically, diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 93433054..ae79404c 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -8,6 +8,8 @@ # Commitlint is disabled by default for scheduled and manual runs, and for pushes # with no commits (such as creating a tag on an existing commit). # Explicit `linter-env` validator settings take precedence. +# If the root package.json declares @hoverkraft/commitlint-config, install the +# repository's locked dependencies with lifecycle scripts disabled before linting. # # Include this workflow job in the outer publish-ci-reports workflow dependencies. # Its report definition identifies the native Super-Linter summary automatically, @@ -96,6 +98,25 @@ jobs: fetch-depth: 0 persist-credentials: false + - name: Detect shared commitlint preset + id: commitlint-preset + if: hashFiles('package.json') != '' + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 + with: + script: | + const fs = require('node:fs'); + const path = require('node:path'); + const manifest = JSON.parse(fs.readFileSync(path.join(process.env.GITHUB_WORKSPACE, 'package.json'), 'utf8')); + const preset = '@hoverkraft/commitlint-config'; + core.setOutput('install', Boolean(manifest.dependencies?.[preset] || manifest.devDependencies?.[preset])); + + - name: Install repository commitlint dependencies + if: steps.commitlint-preset.outputs.install == 'true' + uses: hoverkraft-tech/ci-github-nodejs/actions/setup-node@191d7230d57982bfc11d57f68b005f386a6d7fbf # 3.1.1 + with: + working-directory: . + ignore-scripts: "true" + - name: Configure Super-Linter environment id: configure uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 diff --git a/.github/workflows/semantic-pull-request.md b/.github/workflows/semantic-pull-request.md index f2aa13e5..a272c771 100644 --- a/.github/workflows/semantic-pull-request.md +++ b/.github/workflows/semantic-pull-request.md @@ -32,6 +32,9 @@ Validate pull request titles with the same commitlint policy as the shared linte The lint-pull-request-title action runs on Node.js and reads the repository's root commitlint config. It falls back to `@commitlint/config-conventional` when no rules are configured. +Repositories can extend the bundled `@hoverkraft/commitlint-config` to use the shared Hoverkraft policy. +If the root package.json declares that preset, install the repository's locked dependencies +with lifecycle scripts disabled so title and commit checks use the same preset version. Contributor and bot titles use the same repository rules; warnings produce annotations. The action owns its dependencies and installs them from its lockfile with lifecycle scripts disabled. Git-generated messages are not exempt by default; repository ignore settings take precedence. diff --git a/.github/workflows/semantic-pull-request.yml b/.github/workflows/semantic-pull-request.yml index c5862a49..9427d3ea 100644 --- a/.github/workflows/semantic-pull-request.yml +++ b/.github/workflows/semantic-pull-request.yml @@ -2,6 +2,9 @@ # # The lint-pull-request-title action runs on Node.js and reads the repository's root commitlint config. # It falls back to `@commitlint/config-conventional` when no rules are configured. +# Repositories can extend the bundled `@hoverkraft/commitlint-config` to use the shared Hoverkraft policy. +# If the root package.json declares that preset, install the repository's locked dependencies +# with lifecycle scripts disabled so title and commit checks use the same preset version. # Contributor and bot titles use the same repository rules; warnings produce annotations. # The action owns its dependencies and installs them from its lockfile with lifecycle scripts disabled. # Git-generated messages are not exempt by default; repository ignore settings take precedence. @@ -46,5 +49,24 @@ jobs: with: persist-credentials: false + - name: Detect shared commitlint preset + id: commitlint-preset + if: hashFiles('package.json') != '' + uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 + with: + script: | + const fs = require('node:fs'); + const path = require('node:path'); + const manifest = JSON.parse(fs.readFileSync(path.join(process.env.GITHUB_WORKSPACE, 'package.json'), 'utf8')); + const preset = '@hoverkraft/commitlint-config'; + core.setOutput('install', Boolean(manifest.dependencies?.[preset] || manifest.devDependencies?.[preset])); + + - name: Install repository commitlint dependencies + if: steps.commitlint-preset.outputs.install == 'true' + uses: hoverkraft-tech/ci-github-nodejs/actions/setup-node@191d7230d57982bfc11d57f68b005f386a6d7fbf # 3.1.1 + with: + working-directory: . + ignore-scripts: "true" + - name: Validate title uses: $/actions/quality/lint-pull-request-title diff --git a/Makefile b/Makefile index 4a609a41..fc6cd007 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,7 @@ lint-fix: ## Execute linting and fix -e FIX_BIOME_FORMAT=true \ ) -setup: ## Install npm dependencies for all package.json files under actions/ +setup: ## Install npm dependencies for actions and shared packages @echo "Installing npm dependencies for all packages..." $(call run_npm_for_packages,install) @@ -30,7 +30,7 @@ npm-audit-fix: ## Execute npm audit fix test: ## Execute tests @echo "Running tests for all packages..." - $(call run_npm_for_packages,test) + $(call run_npm_for_packages,test,actions) ci: ## Execute CI tasks $(MAKE) setup @@ -56,7 +56,7 @@ endef define run_npm_for_packages @set -uo pipefail; \ overall_status=0; \ - packages="$$(find actions -type f -name package.json -not -path '*/node_modules/*' -not -path '*/dist/*' -print | sort)"; \ + packages="$$(find $(if $(2),$(2),actions packages) -type f -name package.json -not -path '*/node_modules/*' -not -path '*/dist/*' -print | sort)"; \ for pkg in $$packages; do \ pkg_dir="$$(dirname "$$pkg")"; \ echo "---"; \ diff --git a/actions/quality/lint-pull-request-title/.npmrc b/actions/quality/lint-pull-request-title/.npmrc new file mode 100644 index 00000000..c7d35173 --- /dev/null +++ b/actions/quality/lint-pull-request-title/.npmrc @@ -0,0 +1 @@ +install-links=true diff --git a/actions/quality/lint-pull-request-title/README.md b/actions/quality/lint-pull-request-title/README.md index c9c51234..59cff848 100644 --- a/actions/quality/lint-pull-request-title/README.md +++ b/actions/quality/lint-pull-request-title/README.md @@ -15,6 +15,7 @@ Validate the event's pull request title using the checked-out repository's commitlint config. Fall back to `@commitlint/config-conventional` when no rules are configured. +Bundle `@hoverkraft/commitlint-config` for repositories that extend the shared Hoverkraft policy. The same repository rules apply to people and bots; warnings produce annotations. Requires a pull request event and a repository checkout. Dependencies are installed from the action's lockfile with lifecycle scripts disabled. diff --git a/actions/quality/lint-pull-request-title/action.yml b/actions/quality/lint-pull-request-title/action.yml index 09769c6c..6b546956 100644 --- a/actions/quality/lint-pull-request-title/action.yml +++ b/actions/quality/lint-pull-request-title/action.yml @@ -2,6 +2,7 @@ name: Lint pull request title description: | Validate the event's pull request title using the checked-out repository's commitlint config. Fall back to `@commitlint/config-conventional` when no rules are configured. + Bundle `@hoverkraft/commitlint-config` for repositories that extend the shared Hoverkraft policy. The same repository rules apply to people and bots; warnings produce annotations. Requires a pull request event and a repository checkout. Dependencies are installed from the action's lockfile with lifecycle scripts disabled. diff --git a/actions/quality/lint-pull-request-title/package-lock.json b/actions/quality/lint-pull-request-title/package-lock.json index 64d96a9b..8711cb0c 100644 --- a/actions/quality/lint-pull-request-title/package-lock.json +++ b/actions/quality/lint-pull-request-title/package-lock.json @@ -12,7 +12,8 @@ "@commitlint/config-conventional": "21.2.4", "@commitlint/format": "21.2.3", "@commitlint/lint": "21.2.4", - "@commitlint/load": "21.2.4" + "@commitlint/load": "21.2.4", + "@hoverkraft/commitlint-config": "file:../../../packages/commitlint-config" }, "engines": { "node": ">=24.0.0" @@ -235,6 +236,17 @@ "node": ">=22" } }, + "node_modules/@hoverkraft/commitlint-config": { + "version": "1.0.0", + "resolved": "file:../../../packages/commitlint-config", + "license": "MIT", + "dependencies": { + "@commitlint/config-conventional": "21.2.4" + }, + "engines": { + "node": ">=24.0.0" + } + }, "node_modules/@simple-libs/stream-utils": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/@simple-libs/stream-utils/-/stream-utils-2.0.0.tgz", diff --git a/actions/quality/lint-pull-request-title/package.json b/actions/quality/lint-pull-request-title/package.json index b0176f04..392801fd 100644 --- a/actions/quality/lint-pull-request-title/package.json +++ b/actions/quality/lint-pull-request-title/package.json @@ -15,7 +15,8 @@ "@commitlint/config-conventional": "21.2.4", "@commitlint/format": "21.2.3", "@commitlint/lint": "21.2.4", - "@commitlint/load": "21.2.4" + "@commitlint/load": "21.2.4", + "@hoverkraft/commitlint-config": "file:../../../packages/commitlint-config" }, "engines": { "node": ">=24.0.0" diff --git a/actions/quality/lint-pull-request-title/src/index.test.js b/actions/quality/lint-pull-request-title/src/index.test.js index be4325cd..2b52e2ad 100644 --- a/actions/quality/lint-pull-request-title/src/index.test.js +++ b/actions/quality/lint-pull-request-title/src/index.test.js @@ -5,11 +5,16 @@ import { tmpdir } from "node:os"; import { join } from "node:path"; import { mock, test } from "node:test"; import { fileURLToPath } from "node:url"; +import lint from "@commitlint/lint"; +import load from "@commitlint/load"; import { run } from "./index.js"; const conventionalPreset = fileURLToPath( import.meta.resolve("@commitlint/config-conventional"), ); +const sharedPreset = fileURLToPath( + import.meta.resolve("@hoverkraft/commitlint-config"), +); function workspace(t) { const directory = mkdtempSync(join(tmpdir(), "title-policy-")); @@ -90,18 +95,12 @@ for (const filename of [".commitlintrc.json", "package.json"]) { }); } -test("repository warnings apply equally to contributors and bots", async (t) => { +test("shared policy warns equally for contributor and bot titles", async (t) => { // Arrange const cwd = workspace(t); writeFileSync( join(cwd, ".commitlintrc.json"), - JSON.stringify({ - extends: [conventionalPreset], - rules: { - "subject-case": [1, "never", ["sentence-case"]], - "header-max-length": [1, "always", 100], - }, - }), + JSON.stringify({ extends: [sharedPreset] }), ); for (const actor of ["contributor", "dependabot[bot]", "renovate[bot]"]) { const core = reporter(); @@ -131,8 +130,8 @@ test("repository errors still fail when other rules only warn", async (t) => { writeFileSync( join(cwd, ".commitlintrc.json"), JSON.stringify({ - extends: [conventionalPreset], - rules: { "subject-case": [1, "never", ["sentence-case"]] }, + extends: [sharedPreset], + rules: { "header-max-length": [2, "always", 100] }, }), ); const core = reporter(); @@ -141,17 +140,40 @@ test("repository errors still fail when other rules only warn", async (t) => { await run({ core, context: { - payload: { pull_request: { title: "unknown: Update a dependency" } }, + payload: { + pull_request: { + title: "build(deps): Bump a dependency ".padEnd(101, "x"), + }, + }, }, cwd, }); // Assert assert.equal(core.setFailed.mock.callCount(), 1); - assert.match(core.info.mock.calls[0].arguments[0], /type-enum/); + assert.match(core.info.mock.calls[0].arguments[0], /header-max-length/); assert.equal(core.warning.mock.callCount(), 1); }); +test("shared preset reports long commit bodies and footers without hiding errors", async (t) => { + const cwd = workspace(t); + const config = await load({ extends: [sharedPreset] }, { cwd }); + const result = await lint( + `unknown: update dependencies\n\n${"dependency details ".repeat(10)}\n\nBREAKING CHANGE: ${"migration details ".repeat(10)}`, + config.rules, + { parserOpts: config.parserPreset?.parserOpts, defaultIgnores: false }, + ); + assert.equal(result.valid, false); + assert.deepEqual( + result.errors.map(({ name }) => name), + ["type-enum"], + ); + assert.deepEqual(result.warnings.map(({ name }) => name).sort(), [ + "body-max-line-length", + "footer-max-line-length", + ]); +}); + test("loads relative presets and repository plugins from a JavaScript config", async (t) => { // Arrange const cwd = workspace(t); @@ -238,8 +260,7 @@ test("resolves the bundled preset without installing repository dependencies", ( writeFileSync( join(cwd, ".commitlintrc.json"), JSON.stringify({ - extends: ["@commitlint/config-conventional"], - rules: { "subject-case": [1, "never", ["sentence-case"]] }, + extends: ["@hoverkraft/commitlint-config"], }), ); diff --git a/docs/adr/0004-share-commitlint-policy.md b/docs/adr/0004-share-commitlint-policy.md new file mode 100644 index 00000000..ec754687 --- /dev/null +++ b/docs/adr/0004-share-commitlint-policy.md @@ -0,0 +1,55 @@ +# ADR 0004: Share the commitlint policy as an npm preset + +Status: Accepted + +Date: 2026-12-03 + +## Context + +Repositories using the shared title workflow still carry different commitlint +rules. On 2026-12-03, the latest title checks for +[cicada-sense PR 308](https://github.com/cigales-cloud/cicada-sense/actions/runs/46212439632/job/141188919008) +and [Cigales landing-page PR 457](https://github.com/cigales-cloud/landing-page/actions/runs/46031746243/job/140617018398) +rejected generated titles of 138 and 134 characters against a 100-character limit. +Their repository overrides made that rule blocking. + +The latest application lint jobs for +[CloudNative-Provence PR 303](https://github.com/CloudNative-Provence/landing-page/actions/runs/47027383382/job/143983590621) +and [Escemi PR 1253](https://github.com/escemi-tech/escemi-website/actions/runs/46576152398/job/142399105754) +failed during dependency installation: TypeScript 7 did not satisfy the installed +`@astrojs/check` peer range. Those failures do not justify weakening commit checks. + +## Decision + +Maintain `@hoverkraft/commitlint-config` in this repository and distribute it as a +standard commitlint shareable npm package. Reuse the existing conventional preset +and the repository's four style-warning overrides. Retain all other rule severities. +Apply the same rules to every author, with no bot bypass or message rewriting. + +Repositories opt in through `extends`. Explicit repository rules remain authoritative. +Keep the conventional fallback for unconfigured repositories, matching the current +Super-Linter image. Install the same pinned preset for local and CI checks. The +reusable workflows install locked root dependencies with lifecycle scripts disabled +when a repository declares the shared preset. + +Keep Dependabot configurations in consumer repositories, with explicit `build` +prefixes and dependency scopes. Dependabot has no documented remote preset loader. +Schedules, directories and grouping remain repository-specific. + +## Consequences + +Policy updates can be versioned and reviewed as dependency updates instead of +repeated edits to copied rule sets. The title action includes the preset for +consumers without installed Node.js dependencies. A locally installed preset takes +precedence over that bundled version. + +Style warnings also permit long or capitalized human-written subjects. This is +intentional: the Conventional Commits specification does not impose these style +limits. Malformed messages and unsupported types still fail. Repositories that +promote those warnings to errors accept that generated updates may need attention. + +Publishing the package is a rollout step. Consumers install the package in their +repository for local linting; the workflows install it for CI. Bundling it in the +shared image could remove the root tooling manifest requirement for non-Node.js +repositories in a later release. Dependabot does not inherit these +settings automatically from the organization `.github` repository. diff --git a/docs/usage/commits.md b/docs/usage/commits.md index e6a8a674..b5f9d0fb 100644 --- a/docs/usage/commits.md +++ b/docs/usage/commits.md @@ -17,15 +17,38 @@ feat(api)!: require a release tag Use commitlint's standard configuration formats, such as `.commitlintrc.json`, `commitlint.config.cjs`, or the `commitlint` field in the root `package.json`. -Keep one configuration source. Extend a preset and override only the rules that -need different behavior. See the [commitlint configuration reference](https://commitlint.js.org/reference/configuration.html). +Keep one configuration source. Use the versioned +[`@hoverkraft/commitlint-config` preset](../../packages/commitlint-config/README.md) +instead of copying its rules into each repository. It uses commitlint's standard +[shareable configuration](https://commitlint.js.org/concepts/shareable-config.html). +Install a published version at the repository root and commit the lockfile: + +```bash +npm install --save-dev --save-exact @commitlint/cli @hoverkraft/commitlint-config +``` + +Then configure `.commitlintrc.json`: + +```json +{ + "extends": ["@hoverkraft/commitlint-config"] +} +``` + +The preset extends `@commitlint/config-conventional`. Conventional types, required +subjects, lowercase types, header whitespace and trailing subject periods remain +blocking. Subject casing and lines longer than 100 characters produce warnings. +The [Conventional Commits specification](https://www.conventionalcommits.org/en/v1.0.0/) +does not impose a subject case or a character limit. These style warnings apply +equally to people and bots; dependency updates are still validated. -For repositories using Dependabot, see this repository's -[commitlint configuration](../../.commitlintrc.json). It keeps conventional types -and required subjects blocking while reporting casing and line lengths as warnings. +Repository overrides remain supported, including stricter rules. A blocking length +limit can reject generated Dependabot titles even with an explicit prefix. The +image and title workflow never silently relax repository rules. -These overrides belong to the repository. The image and title workflow do not -change their severity. A repository can choose stricter rules. +The preset must be published before consumers install it from npm. See +[maintaining the shared preset](../development/actions.md#shared-commitlint-preset) +for packaging and rollout requirements. The Super-Linter image supplies the conventional preset as a fallback when no configuration is found. The title action follows commitlint's `--default-config` @@ -42,14 +65,28 @@ changes in that PR take effect after merging. No secrets are required. The standalone [lint-pull-request-title action](../../actions/quality/lint-pull-request-title/README.md) requires a checkout when called directly. It owns its locked dependencies and -installs them with lifecycle scripts disabled. The bundled conventional preset is -available without installing the repository's dependencies. Install any additional -presets or plugins before calling the action. Relative presets resolve from the -repository configuration. Repository rules, parser settings, plugins and ignore +installs them with lifecycle scripts disabled. The bundled conventional and +Hoverkraft presets are available without installing the repository's dependencies. +To use the exact preset version in the repository lockfile, install the repository's +dependencies before calling the action. Install any additional presets or plugins +too. Relative presets resolve from the repository configuration. Repository rules, +parser settings, plugins and ignore settings are respected. Git-generated messages are not exempt as PR titles unless the repository explicitly configures that behavior. Warnings appear as GitHub annotations and do not fail the title check. +Both reusable workflows detect `@hoverkraft/commitlint-config` in the root +`package.json` dependencies or devDependencies and install the repository's locked +dependencies with lifecycle scripts disabled. This makes the locally installed +version take precedence over the title action's bundled version. The installation +includes the full root dependency set; installation failures stop the check. + +The current Super-Linter image bundles the conventional preset only. Before local +linting, run `npm ci --ignore-scripts` at the repository root. Repositories using +another application language still need a root tooling manifest and lockfile, or +a custom lint image with the same pinned preset. Missing presets fail validation; +they do not silently fall back. + Use the same Super-Linter image version in local linting and CI. Run the repository's `make lint` command before pushing. Set `LOG_LEVEL=INFO` when inspecting commitlint warnings in Super-Linter, and leave `ENABLE_COMMITLINT_STRICT_MODE` disabled if warnings @@ -63,7 +100,8 @@ check does not validate edits made to the merge message afterward. ## Dependency updates -Configure each Dependabot ecosystem with its supported message options: +Configure every Dependabot ecosystem with explicit message options, including +ecosystems that only update development dependencies: ```yaml commit-message: @@ -71,10 +109,26 @@ commit-message: include: scope ``` +`prefix: build` also applies to development dependencies unless `prefix-development` +overrides it. `include: scope` adds `deps` or `deps-dev`. Keep group names concise +because Dependabot includes them in generated titles. These options are documented +in the [Dependabot reference](https://docs.github.com/en/code-security/reference/supply-chain-security/dependabot-options-reference#commit-message). + +Dependabot requires a `.github/dependabot.yml` or `.github/dependabot.yaml` in each +repository's default branch. It has no documented remote `extends` option. Keep +ecosystems, directories, schedules and groups in that repository. Shared tooling +can check or update the message settings through reviewed changes; placing a +Dependabot file in an organization `.github` repository does not make it inherited. + Dependabot does not read commitlint configuration. Its prefix setting does not control every formatting detail: subjects may be capitalized and generated titles -or commit-body lines may exceed the preset's length limits. Configure the desired -severity in the repository's commitlint rules. Updating the Dependabot configuration -does not rewrite existing commits. +or commit-body lines may exceed the preset's length limits. The shared preset +reports those style differences as warnings while keeping structural errors +blocking. Updating the Dependabot configuration does not rewrite existing commits. +Renaming a PR changes its title only, not its commit messages. + +A dependency update can still fail application installation, linting or tests. +Resolve incompatible dependency versions in the application; changing commitlint +rules cannot fix those failures. For Renovate, enable semantic commits and use `build` as `semanticCommitType`. diff --git a/packages/commitlint-config/LICENSE b/packages/commitlint-config/LICENSE new file mode 100644 index 00000000..4752f134 --- /dev/null +++ b/packages/commitlint-config/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2023 hoverkraft + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/commitlint-config/README.md b/packages/commitlint-config/README.md new file mode 100644 index 00000000..eef1c1f6 --- /dev/null +++ b/packages/commitlint-config/README.md @@ -0,0 +1,7 @@ +# Hoverkraft commitlint configuration + +Shared Conventional Commits rules for commit messages and pull request titles. +Requires Node.js 24 or later and commitlint. + +See the [common commit process](https://github.com/hoverkraft-tech/ci-github-common/blob/main/docs/usage/commits.md) +for installation, validation and Dependabot configuration. diff --git a/packages/commitlint-config/index.json b/packages/commitlint-config/index.json new file mode 100644 index 00000000..c9fc5530 --- /dev/null +++ b/packages/commitlint-config/index.json @@ -0,0 +1,13 @@ +{ + "extends": ["@commitlint/config-conventional"], + "rules": { + "subject-case": [ + 1, + "never", + ["sentence-case", "start-case", "pascal-case", "upper-case"] + ], + "header-max-length": [1, "always", 100], + "body-max-line-length": [1, "always", 100], + "footer-max-line-length": [1, "always", 100] + } +} diff --git a/packages/commitlint-config/package-lock.json b/packages/commitlint-config/package-lock.json new file mode 100644 index 00000000..473b2bcd --- /dev/null +++ b/packages/commitlint-config/package-lock.json @@ -0,0 +1,112 @@ +{ + "name": "@hoverkraft/commitlint-config", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "@hoverkraft/commitlint-config", + "version": "1.0.0", + "license": "MIT", + "dependencies": { + "@commitlint/config-conventional": "21.2.4" + }, + "engines": { + "node": ">=24.0.0" + } + }, + "node_modules/@commitlint/config-conventional": { + "version": "21.2.4", + "resolved": "https://registry.npmjs.org/@commitlint/config-conventional/-/config-conventional-21.2.4.tgz", + "integrity": "sha512-IRldtwgNmR0SySR7wizFbhRmq45lPt6H3XCNTMyVN7jrPLgi8JlTRR6Eg1HLWUQt9P1Lh3k6eY25ilDa47EE6w==", + "license": "MIT", + "dependencies": { + "@commitlint/types": "^21.2.3", + "conventional-changelog-conventionalcommits": "^10.0.0" + }, + "engines": { + "node": ">=22.12.0" + } + }, + "node_modules/@commitlint/types": { + "version": "21.3.0", + "resolved": "https://registry.npmjs.org/@commitlint/types/-/types-21.3.0.tgz", + "integrity": "sha512-3tg5Ea8vNvA1a1oBoyTcRXNJwVWZec9LBxud8XYmljNeYtya2ZToaGUyFlAfctiHIHDmf1Ijq5F8zXmnEY9r2w==", + "license": "MIT", + "dependencies": { + "conventional-commits-parser": "^7.0.0", + "picocolors": "^1.1.1" + }, + "engines": { + "node": ">=22.12.0" + } + }, + "node_modules/@conventional-changelog/template": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/@conventional-changelog/template/-/template-1.4.1.tgz", + "integrity": "sha512-mHyyEL0eIEqJ6+aF24+AdZRo4bu4W5GdUiCiCx5X7kfDY51ye8GQJ264uOINObrRSKxtSRCOWPpl9hbOy4UzxQ==", + "license": "MIT", + "engines": { + "node": ">=22" + } + }, + "node_modules/@simple-libs/stream-utils": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@simple-libs/stream-utils/-/stream-utils-2.0.0.tgz", + "integrity": "sha512-fCTuZK4QBa+39Oz9l4OGfJfz+GpwCp3AqO7Zch3to99xHPgstVsRFpeQ8LNd2o1Gv8raL2mCFwiaHh7bFSp5DQ==", + "license": "MIT", + "engines": { + "node": ">=22" + }, + "funding": { + "url": "https://ko-fi.com/dangreen" + } + }, + "node_modules/argue-cli": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/argue-cli/-/argue-cli-3.2.1.tgz", + "integrity": "sha512-h8QG03KSAympQnbZe0k5h/mnQCCkoKO9rVQ0L+F99+NNTV4vm18Lq70WwIKE0aLN3mM1EUf42l960bl6Dd0jOw==", + "license": "MIT", + "engines": { + "node": ">=22" + }, + "funding": { + "url": "https://ko-fi.com/dangreen" + } + }, + "node_modules/conventional-changelog-conventionalcommits": { + "version": "10.4.1", + "resolved": "https://registry.npmjs.org/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-10.4.1.tgz", + "integrity": "sha512-jS1LRFSbRoAr6JbhhRy1JYfNNUj5LM3+v49hRE03CgccsiYqgdVj/RTmrw4J1rylrqijHwdOlJWiJa61JHOgHg==", + "license": "ISC", + "dependencies": { + "@conventional-changelog/template": "^1.4.0" + }, + "engines": { + "node": ">=22" + } + }, + "node_modules/conventional-commits-parser": { + "version": "7.1.4", + "resolved": "https://registry.npmjs.org/conventional-commits-parser/-/conventional-commits-parser-7.1.4.tgz", + "integrity": "sha512-TW3PZHi6hwF4cyu7KKc4kNqD1cgg8AkkK5ge9+zsEfpjaSXOeeIQyNWBr7kx5hR2wFuKVmr0be37RzcpmACQIA==", + "license": "MIT", + "dependencies": { + "@simple-libs/stream-utils": "^2.0.0", + "argue-cli": "^3.1.0" + }, + "bin": { + "conventional-commits-parser": "dist/cli/index.js" + }, + "engines": { + "node": ">=22" + } + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "license": "ISC" + } + } +} diff --git a/packages/commitlint-config/package.json b/packages/commitlint-config/package.json new file mode 100644 index 00000000..87d3fb56 --- /dev/null +++ b/packages/commitlint-config/package.json @@ -0,0 +1,26 @@ +{ + "name": "@hoverkraft/commitlint-config", + "version": "1.0.0", + "description": "Shared Hoverkraft Conventional Commits policy for commits and pull request titles", + "main": "index.json", + "exports": "./index.json", + "files": [ + "index.json" + ], + "author": "hoverkraft", + "license": "MIT", + "repository": { + "type": "git", + "url": "git+https://github.com/hoverkraft-tech/ci-github-common.git", + "directory": "packages/commitlint-config" + }, + "publishConfig": { + "access": "public" + }, + "dependencies": { + "@commitlint/config-conventional": "21.2.4" + }, + "engines": { + "node": ">=24.0.0" + } +} From b8546544f76644c3e3513ae832cc5173713ca79d Mon Sep 17 00:00:00 2001 From: Emilien Escalle Date: Thu, 3 Dec 2026 15:03:13 +0100 Subject: [PATCH 2/5] refactor: move shared commitlint preset to dedicated repository --- .commitlintrc.json | 12 +- .github/dependabot.yml | 1 - .github/workflows/semantic-pull-request.md | 2 +- .github/workflows/semantic-pull-request.yml | 2 +- Makefile | 6 +- .../quality/lint-pull-request-title/.npmrc | 1 - .../quality/lint-pull-request-title/README.md | 1 - .../lint-pull-request-title/action.yml | 1 - .../lint-pull-request-title/package-lock.json | 14 +-- .../lint-pull-request-title/package.json | 3 +- .../lint-pull-request-title/src/index.test.js | 49 +++----- docs/adr/0004-share-commitlint-policy.md | 55 --------- docs/usage/commits.md | 101 +++++++--------- packages/commitlint-config/LICENSE | 21 ---- packages/commitlint-config/README.md | 7 -- packages/commitlint-config/index.json | 13 -- packages/commitlint-config/package-lock.json | 112 ------------------ packages/commitlint-config/package.json | 26 ---- 18 files changed, 75 insertions(+), 352 deletions(-) delete mode 100644 actions/quality/lint-pull-request-title/.npmrc delete mode 100644 docs/adr/0004-share-commitlint-policy.md delete mode 100644 packages/commitlint-config/LICENSE delete mode 100644 packages/commitlint-config/README.md delete mode 100644 packages/commitlint-config/index.json delete mode 100644 packages/commitlint-config/package-lock.json delete mode 100644 packages/commitlint-config/package.json diff --git a/.commitlintrc.json b/.commitlintrc.json index c2eb08b8..c9fc5530 100644 --- a/.commitlintrc.json +++ b/.commitlintrc.json @@ -1,3 +1,13 @@ { - "extends": ["./packages/commitlint-config/index.json"] + "extends": ["@commitlint/config-conventional"], + "rules": { + "subject-case": [ + 1, + "never", + ["sentence-case", "start-case", "pascal-case", "upper-case"] + ], + "header-max-length": [1, "always", 100], + "body-max-line-length": [1, "always", 100], + "footer-max-line-length": [1, "always", 100] + } } diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 439e19a3..b6ab7bcb 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -43,7 +43,6 @@ updates: open-pull-requests-limit: 20 directories: - "/actions/**/*" - - "/packages/**/*" schedule: interval: weekly day: friday diff --git a/.github/workflows/semantic-pull-request.md b/.github/workflows/semantic-pull-request.md index a272c771..d331452f 100644 --- a/.github/workflows/semantic-pull-request.md +++ b/.github/workflows/semantic-pull-request.md @@ -32,7 +32,7 @@ Validate pull request titles with the same commitlint policy as the shared linte The lint-pull-request-title action runs on Node.js and reads the repository's root commitlint config. It falls back to `@commitlint/config-conventional` when no rules are configured. -Repositories can extend the bundled `@hoverkraft/commitlint-config` to use the shared Hoverkraft policy. +Repositories can extend `@hoverkraft/commitlint-config` to use the shared Hoverkraft policy. If the root package.json declares that preset, install the repository's locked dependencies with lifecycle scripts disabled so title and commit checks use the same preset version. Contributor and bot titles use the same repository rules; warnings produce annotations. diff --git a/.github/workflows/semantic-pull-request.yml b/.github/workflows/semantic-pull-request.yml index 9427d3ea..a81cffff 100644 --- a/.github/workflows/semantic-pull-request.yml +++ b/.github/workflows/semantic-pull-request.yml @@ -2,7 +2,7 @@ # # The lint-pull-request-title action runs on Node.js and reads the repository's root commitlint config. # It falls back to `@commitlint/config-conventional` when no rules are configured. -# Repositories can extend the bundled `@hoverkraft/commitlint-config` to use the shared Hoverkraft policy. +# Repositories can extend `@hoverkraft/commitlint-config` to use the shared Hoverkraft policy. # If the root package.json declares that preset, install the repository's locked dependencies # with lifecycle scripts disabled so title and commit checks use the same preset version. # Contributor and bot titles use the same repository rules; warnings produce annotations. diff --git a/Makefile b/Makefile index fc6cd007..4a609a41 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,7 @@ lint-fix: ## Execute linting and fix -e FIX_BIOME_FORMAT=true \ ) -setup: ## Install npm dependencies for actions and shared packages +setup: ## Install npm dependencies for all package.json files under actions/ @echo "Installing npm dependencies for all packages..." $(call run_npm_for_packages,install) @@ -30,7 +30,7 @@ npm-audit-fix: ## Execute npm audit fix test: ## Execute tests @echo "Running tests for all packages..." - $(call run_npm_for_packages,test,actions) + $(call run_npm_for_packages,test) ci: ## Execute CI tasks $(MAKE) setup @@ -56,7 +56,7 @@ endef define run_npm_for_packages @set -uo pipefail; \ overall_status=0; \ - packages="$$(find $(if $(2),$(2),actions packages) -type f -name package.json -not -path '*/node_modules/*' -not -path '*/dist/*' -print | sort)"; \ + packages="$$(find actions -type f -name package.json -not -path '*/node_modules/*' -not -path '*/dist/*' -print | sort)"; \ for pkg in $$packages; do \ pkg_dir="$$(dirname "$$pkg")"; \ echo "---"; \ diff --git a/actions/quality/lint-pull-request-title/.npmrc b/actions/quality/lint-pull-request-title/.npmrc deleted file mode 100644 index c7d35173..00000000 --- a/actions/quality/lint-pull-request-title/.npmrc +++ /dev/null @@ -1 +0,0 @@ -install-links=true diff --git a/actions/quality/lint-pull-request-title/README.md b/actions/quality/lint-pull-request-title/README.md index 59cff848..c9c51234 100644 --- a/actions/quality/lint-pull-request-title/README.md +++ b/actions/quality/lint-pull-request-title/README.md @@ -15,7 +15,6 @@ Validate the event's pull request title using the checked-out repository's commitlint config. Fall back to `@commitlint/config-conventional` when no rules are configured. -Bundle `@hoverkraft/commitlint-config` for repositories that extend the shared Hoverkraft policy. The same repository rules apply to people and bots; warnings produce annotations. Requires a pull request event and a repository checkout. Dependencies are installed from the action's lockfile with lifecycle scripts disabled. diff --git a/actions/quality/lint-pull-request-title/action.yml b/actions/quality/lint-pull-request-title/action.yml index 6b546956..09769c6c 100644 --- a/actions/quality/lint-pull-request-title/action.yml +++ b/actions/quality/lint-pull-request-title/action.yml @@ -2,7 +2,6 @@ name: Lint pull request title description: | Validate the event's pull request title using the checked-out repository's commitlint config. Fall back to `@commitlint/config-conventional` when no rules are configured. - Bundle `@hoverkraft/commitlint-config` for repositories that extend the shared Hoverkraft policy. The same repository rules apply to people and bots; warnings produce annotations. Requires a pull request event and a repository checkout. Dependencies are installed from the action's lockfile with lifecycle scripts disabled. diff --git a/actions/quality/lint-pull-request-title/package-lock.json b/actions/quality/lint-pull-request-title/package-lock.json index 8711cb0c..64d96a9b 100644 --- a/actions/quality/lint-pull-request-title/package-lock.json +++ b/actions/quality/lint-pull-request-title/package-lock.json @@ -12,8 +12,7 @@ "@commitlint/config-conventional": "21.2.4", "@commitlint/format": "21.2.3", "@commitlint/lint": "21.2.4", - "@commitlint/load": "21.2.4", - "@hoverkraft/commitlint-config": "file:../../../packages/commitlint-config" + "@commitlint/load": "21.2.4" }, "engines": { "node": ">=24.0.0" @@ -236,17 +235,6 @@ "node": ">=22" } }, - "node_modules/@hoverkraft/commitlint-config": { - "version": "1.0.0", - "resolved": "file:../../../packages/commitlint-config", - "license": "MIT", - "dependencies": { - "@commitlint/config-conventional": "21.2.4" - }, - "engines": { - "node": ">=24.0.0" - } - }, "node_modules/@simple-libs/stream-utils": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/@simple-libs/stream-utils/-/stream-utils-2.0.0.tgz", diff --git a/actions/quality/lint-pull-request-title/package.json b/actions/quality/lint-pull-request-title/package.json index 392801fd..b0176f04 100644 --- a/actions/quality/lint-pull-request-title/package.json +++ b/actions/quality/lint-pull-request-title/package.json @@ -15,8 +15,7 @@ "@commitlint/config-conventional": "21.2.4", "@commitlint/format": "21.2.3", "@commitlint/lint": "21.2.4", - "@commitlint/load": "21.2.4", - "@hoverkraft/commitlint-config": "file:../../../packages/commitlint-config" + "@commitlint/load": "21.2.4" }, "engines": { "node": ">=24.0.0" diff --git a/actions/quality/lint-pull-request-title/src/index.test.js b/actions/quality/lint-pull-request-title/src/index.test.js index 2b52e2ad..be4325cd 100644 --- a/actions/quality/lint-pull-request-title/src/index.test.js +++ b/actions/quality/lint-pull-request-title/src/index.test.js @@ -5,16 +5,11 @@ import { tmpdir } from "node:os"; import { join } from "node:path"; import { mock, test } from "node:test"; import { fileURLToPath } from "node:url"; -import lint from "@commitlint/lint"; -import load from "@commitlint/load"; import { run } from "./index.js"; const conventionalPreset = fileURLToPath( import.meta.resolve("@commitlint/config-conventional"), ); -const sharedPreset = fileURLToPath( - import.meta.resolve("@hoverkraft/commitlint-config"), -); function workspace(t) { const directory = mkdtempSync(join(tmpdir(), "title-policy-")); @@ -95,12 +90,18 @@ for (const filename of [".commitlintrc.json", "package.json"]) { }); } -test("shared policy warns equally for contributor and bot titles", async (t) => { +test("repository warnings apply equally to contributors and bots", async (t) => { // Arrange const cwd = workspace(t); writeFileSync( join(cwd, ".commitlintrc.json"), - JSON.stringify({ extends: [sharedPreset] }), + JSON.stringify({ + extends: [conventionalPreset], + rules: { + "subject-case": [1, "never", ["sentence-case"]], + "header-max-length": [1, "always", 100], + }, + }), ); for (const actor of ["contributor", "dependabot[bot]", "renovate[bot]"]) { const core = reporter(); @@ -130,8 +131,8 @@ test("repository errors still fail when other rules only warn", async (t) => { writeFileSync( join(cwd, ".commitlintrc.json"), JSON.stringify({ - extends: [sharedPreset], - rules: { "header-max-length": [2, "always", 100] }, + extends: [conventionalPreset], + rules: { "subject-case": [1, "never", ["sentence-case"]] }, }), ); const core = reporter(); @@ -140,40 +141,17 @@ test("repository errors still fail when other rules only warn", async (t) => { await run({ core, context: { - payload: { - pull_request: { - title: "build(deps): Bump a dependency ".padEnd(101, "x"), - }, - }, + payload: { pull_request: { title: "unknown: Update a dependency" } }, }, cwd, }); // Assert assert.equal(core.setFailed.mock.callCount(), 1); - assert.match(core.info.mock.calls[0].arguments[0], /header-max-length/); + assert.match(core.info.mock.calls[0].arguments[0], /type-enum/); assert.equal(core.warning.mock.callCount(), 1); }); -test("shared preset reports long commit bodies and footers without hiding errors", async (t) => { - const cwd = workspace(t); - const config = await load({ extends: [sharedPreset] }, { cwd }); - const result = await lint( - `unknown: update dependencies\n\n${"dependency details ".repeat(10)}\n\nBREAKING CHANGE: ${"migration details ".repeat(10)}`, - config.rules, - { parserOpts: config.parserPreset?.parserOpts, defaultIgnores: false }, - ); - assert.equal(result.valid, false); - assert.deepEqual( - result.errors.map(({ name }) => name), - ["type-enum"], - ); - assert.deepEqual(result.warnings.map(({ name }) => name).sort(), [ - "body-max-line-length", - "footer-max-line-length", - ]); -}); - test("loads relative presets and repository plugins from a JavaScript config", async (t) => { // Arrange const cwd = workspace(t); @@ -260,7 +238,8 @@ test("resolves the bundled preset without installing repository dependencies", ( writeFileSync( join(cwd, ".commitlintrc.json"), JSON.stringify({ - extends: ["@hoverkraft/commitlint-config"], + extends: ["@commitlint/config-conventional"], + rules: { "subject-case": [1, "never", ["sentence-case"]] }, }), ); diff --git a/docs/adr/0004-share-commitlint-policy.md b/docs/adr/0004-share-commitlint-policy.md deleted file mode 100644 index ec754687..00000000 --- a/docs/adr/0004-share-commitlint-policy.md +++ /dev/null @@ -1,55 +0,0 @@ -# ADR 0004: Share the commitlint policy as an npm preset - -Status: Accepted - -Date: 2026-12-03 - -## Context - -Repositories using the shared title workflow still carry different commitlint -rules. On 2026-12-03, the latest title checks for -[cicada-sense PR 308](https://github.com/cigales-cloud/cicada-sense/actions/runs/46212439632/job/141188919008) -and [Cigales landing-page PR 457](https://github.com/cigales-cloud/landing-page/actions/runs/46031746243/job/140617018398) -rejected generated titles of 138 and 134 characters against a 100-character limit. -Their repository overrides made that rule blocking. - -The latest application lint jobs for -[CloudNative-Provence PR 303](https://github.com/CloudNative-Provence/landing-page/actions/runs/47027383382/job/143983590621) -and [Escemi PR 1253](https://github.com/escemi-tech/escemi-website/actions/runs/46576152398/job/142399105754) -failed during dependency installation: TypeScript 7 did not satisfy the installed -`@astrojs/check` peer range. Those failures do not justify weakening commit checks. - -## Decision - -Maintain `@hoverkraft/commitlint-config` in this repository and distribute it as a -standard commitlint shareable npm package. Reuse the existing conventional preset -and the repository's four style-warning overrides. Retain all other rule severities. -Apply the same rules to every author, with no bot bypass or message rewriting. - -Repositories opt in through `extends`. Explicit repository rules remain authoritative. -Keep the conventional fallback for unconfigured repositories, matching the current -Super-Linter image. Install the same pinned preset for local and CI checks. The -reusable workflows install locked root dependencies with lifecycle scripts disabled -when a repository declares the shared preset. - -Keep Dependabot configurations in consumer repositories, with explicit `build` -prefixes and dependency scopes. Dependabot has no documented remote preset loader. -Schedules, directories and grouping remain repository-specific. - -## Consequences - -Policy updates can be versioned and reviewed as dependency updates instead of -repeated edits to copied rule sets. The title action includes the preset for -consumers without installed Node.js dependencies. A locally installed preset takes -precedence over that bundled version. - -Style warnings also permit long or capitalized human-written subjects. This is -intentional: the Conventional Commits specification does not impose these style -limits. Malformed messages and unsupported types still fail. Repositories that -promote those warnings to errors accept that generated updates may need attention. - -Publishing the package is a rollout step. Consumers install the package in their -repository for local linting; the workflows install it for CI. Bundling it in the -shared image could remove the root tooling manifest requirement for non-Node.js -repositories in a later release. Dependabot does not inherit these -settings automatically from the organization `.github` repository. diff --git a/docs/usage/commits.md b/docs/usage/commits.md index b5f9d0fb..623f9f4f 100644 --- a/docs/usage/commits.md +++ b/docs/usage/commits.md @@ -17,17 +17,19 @@ feat(api)!: require a release tag Use commitlint's standard configuration formats, such as `.commitlintrc.json`, `commitlint.config.cjs`, or the `commitlint` field in the root `package.json`. -Keep one configuration source. Use the versioned -[`@hoverkraft/commitlint-config` preset](../../packages/commitlint-config/README.md) -instead of copying its rules into each repository. It uses commitlint's standard -[shareable configuration](https://commitlint.js.org/concepts/shareable-config.html). -Install a published version at the repository root and commit the lockfile: +Keep one configuration source. Extend a preset and override only the rules that +need different behavior. See the [commitlint configuration reference](https://commitlint.js.org/reference/configuration.html). + +Use the versioned +[`@hoverkraft/commitlint-config` preset](https://github.com/hoverkraft-tech/commitlint-config) +to share the policy across repositories. Once a version has been published, install +it at the repository root and commit the manifest and lockfile: ```bash npm install --save-dev --save-exact @commitlint/cli @hoverkraft/commitlint-config ``` -Then configure `.commitlintrc.json`: +Configure the repository to extend it: ```json { @@ -35,20 +37,16 @@ Then configure `.commitlintrc.json`: } ``` -The preset extends `@commitlint/config-conventional`. Conventional types, required -subjects, lowercase types, header whitespace and trailing subject periods remain -blocking. Subject casing and lines longer than 100 characters produce warnings. -The [Conventional Commits specification](https://www.conventionalcommits.org/en/v1.0.0/) -does not impose a subject case or a character limit. These style warnings apply -equally to people and bots; dependency updates are still validated. - -Repository overrides remain supported, including stricter rules. A blocking length -limit can reject generated Dependabot titles even with an explicit prefix. The -image and title workflow never silently relax repository rules. +The preset extends the conventional configuration, keeping type, subject and +whitespace errors blocking while reporting subject casing and line lengths as +warnings. These warnings apply equally to people and bots. A repository can choose +stricter rules, which can still reject generated Dependabot messages. The image +and title workflow do not silently override repository severities. -The preset must be published before consumers install it from npm. See -[maintaining the shared preset](../development/actions.md#shared-commitlint-preset) -for packaging and rollout requirements. +The dedicated repository owns policy tests, package versioning and npm publication. +See its [usage guide](https://github.com/hoverkraft-tech/commitlint-config/blob/main/docs/usage/commits.md) +for the policy and its [release guide](https://github.com/hoverkraft-tech/commitlint-config/blob/main/docs/development/releasing.md) +for publication prerequisites. The Super-Linter image supplies the conventional preset as a fallback when no configuration is found. The title action follows commitlint's `--default-config` @@ -57,6 +55,18 @@ Invalid configuration and missing presets fail validation. ## Local and CI validation +Both reusable workflows detect `@hoverkraft/commitlint-config` in the root +`package.json` dependencies or devDependencies. They install the repository's +locked root dependencies with lifecycle scripts disabled before validating +commits or titles. This installs the full root dependency set; installation +failures stop the check. The installed preset version takes precedence over +globally available configuration. + +Before local linting, run `npm ci --ignore-scripts` at the repository root. The +shared Super-Linter image supplies the conventional preset only. Repositories +using another application language still need a root tooling manifest and lockfile, +or a custom lint image that includes the pinned preset. + Call both shared workflows and keep their versions aligned. Grant `contents: read` to the semantic workflow job so it can check out the repository configuration. The checkout does not persist credentials. `pull_request` runs use the PR merge @@ -65,28 +75,14 @@ changes in that PR take effect after merging. No secrets are required. The standalone [lint-pull-request-title action](../../actions/quality/lint-pull-request-title/README.md) requires a checkout when called directly. It owns its locked dependencies and -installs them with lifecycle scripts disabled. The bundled conventional and -Hoverkraft presets are available without installing the repository's dependencies. -To use the exact preset version in the repository lockfile, install the repository's -dependencies before calling the action. Install any additional presets or plugins -too. Relative presets resolve from the repository configuration. Repository rules, -parser settings, plugins and ignore +installs them with lifecycle scripts disabled. The bundled conventional preset is +available without installing the repository's dependencies. Install any additional +presets or plugins before calling the action. Relative presets resolve from the +repository configuration. Repository rules, parser settings, plugins and ignore settings are respected. Git-generated messages are not exempt as PR titles unless the repository explicitly configures that behavior. Warnings appear as GitHub annotations and do not fail the title check. -Both reusable workflows detect `@hoverkraft/commitlint-config` in the root -`package.json` dependencies or devDependencies and install the repository's locked -dependencies with lifecycle scripts disabled. This makes the locally installed -version take precedence over the title action's bundled version. The installation -includes the full root dependency set; installation failures stop the check. - -The current Super-Linter image bundles the conventional preset only. Before local -linting, run `npm ci --ignore-scripts` at the repository root. Repositories using -another application language still need a root tooling manifest and lockfile, or -a custom lint image with the same pinned preset. Missing presets fail validation; -they do not silently fall back. - Use the same Super-Linter image version in local linting and CI. Run the repository's `make lint` command before pushing. Set `LOG_LEVEL=INFO` when inspecting commitlint warnings in Super-Linter, and leave `ENABLE_COMMITLINT_STRICT_MODE` disabled if warnings @@ -100,8 +96,7 @@ check does not validate edits made to the merge message afterward. ## Dependency updates -Configure every Dependabot ecosystem with explicit message options, including -ecosystems that only update development dependencies: +Configure every Dependabot ecosystem with explicit message options: ```yaml commit-message: @@ -109,26 +104,16 @@ commit-message: include: scope ``` -`prefix: build` also applies to development dependencies unless `prefix-development` -overrides it. `include: scope` adds `deps` or `deps-dev`. Keep group names concise -because Dependabot includes them in generated titles. These options are documented -in the [Dependabot reference](https://docs.github.com/en/code-security/reference/supply-chain-security/dependabot-options-reference#commit-message). - -Dependabot requires a `.github/dependabot.yml` or `.github/dependabot.yaml` in each -repository's default branch. It has no documented remote `extends` option. Keep -ecosystems, directories, schedules and groups in that repository. Shared tooling -can check or update the message settings through reviewed changes; placing a -Dependabot file in an organization `.github` repository does not make it inherited. - Dependabot does not read commitlint configuration. Its prefix setting does not control every formatting detail: subjects may be capitalized and generated titles -or commit-body lines may exceed the preset's length limits. The shared preset -reports those style differences as warnings while keeping structural errors -blocking. Updating the Dependabot configuration does not rewrite existing commits. -Renaming a PR changes its title only, not its commit messages. - -A dependency update can still fail application installation, linting or tests. -Resolve incompatible dependency versions in the application; changing commitlint -rules cannot fix those failures. +or commit-body lines may exceed the preset's length limits. Configure the desired +severity in the repository's commitlint rules. Updating the Dependabot configuration +does not rewrite existing commits. + +`prefix: build` also applies to development dependencies unless `prefix-development` +overrides it. `include: scope` adds `deps` or `deps-dev`. Keep group names concise +because they appear in titles. Dependabot requires its configuration in each +repository's `.github` directory and has no documented remote `extends` mechanism; +the shared npm preset configures commitlint, not Dependabot. For Renovate, enable semantic commits and use `build` as `semanticCommitType`. diff --git a/packages/commitlint-config/LICENSE b/packages/commitlint-config/LICENSE deleted file mode 100644 index 4752f134..00000000 --- a/packages/commitlint-config/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2023 hoverkraft - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/packages/commitlint-config/README.md b/packages/commitlint-config/README.md deleted file mode 100644 index eef1c1f6..00000000 --- a/packages/commitlint-config/README.md +++ /dev/null @@ -1,7 +0,0 @@ -# Hoverkraft commitlint configuration - -Shared Conventional Commits rules for commit messages and pull request titles. -Requires Node.js 24 or later and commitlint. - -See the [common commit process](https://github.com/hoverkraft-tech/ci-github-common/blob/main/docs/usage/commits.md) -for installation, validation and Dependabot configuration. diff --git a/packages/commitlint-config/index.json b/packages/commitlint-config/index.json deleted file mode 100644 index c9fc5530..00000000 --- a/packages/commitlint-config/index.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "extends": ["@commitlint/config-conventional"], - "rules": { - "subject-case": [ - 1, - "never", - ["sentence-case", "start-case", "pascal-case", "upper-case"] - ], - "header-max-length": [1, "always", 100], - "body-max-line-length": [1, "always", 100], - "footer-max-line-length": [1, "always", 100] - } -} diff --git a/packages/commitlint-config/package-lock.json b/packages/commitlint-config/package-lock.json deleted file mode 100644 index 473b2bcd..00000000 --- a/packages/commitlint-config/package-lock.json +++ /dev/null @@ -1,112 +0,0 @@ -{ - "name": "@hoverkraft/commitlint-config", - "version": "1.0.0", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { - "name": "@hoverkraft/commitlint-config", - "version": "1.0.0", - "license": "MIT", - "dependencies": { - "@commitlint/config-conventional": "21.2.4" - }, - "engines": { - "node": ">=24.0.0" - } - }, - "node_modules/@commitlint/config-conventional": { - "version": "21.2.4", - "resolved": "https://registry.npmjs.org/@commitlint/config-conventional/-/config-conventional-21.2.4.tgz", - "integrity": "sha512-IRldtwgNmR0SySR7wizFbhRmq45lPt6H3XCNTMyVN7jrPLgi8JlTRR6Eg1HLWUQt9P1Lh3k6eY25ilDa47EE6w==", - "license": "MIT", - "dependencies": { - "@commitlint/types": "^21.2.3", - "conventional-changelog-conventionalcommits": "^10.0.0" - }, - "engines": { - "node": ">=22.12.0" - } - }, - "node_modules/@commitlint/types": { - "version": "21.3.0", - "resolved": "https://registry.npmjs.org/@commitlint/types/-/types-21.3.0.tgz", - "integrity": "sha512-3tg5Ea8vNvA1a1oBoyTcRXNJwVWZec9LBxud8XYmljNeYtya2ZToaGUyFlAfctiHIHDmf1Ijq5F8zXmnEY9r2w==", - "license": "MIT", - "dependencies": { - "conventional-commits-parser": "^7.0.0", - "picocolors": "^1.1.1" - }, - "engines": { - "node": ">=22.12.0" - } - }, - "node_modules/@conventional-changelog/template": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/@conventional-changelog/template/-/template-1.4.1.tgz", - "integrity": "sha512-mHyyEL0eIEqJ6+aF24+AdZRo4bu4W5GdUiCiCx5X7kfDY51ye8GQJ264uOINObrRSKxtSRCOWPpl9hbOy4UzxQ==", - "license": "MIT", - "engines": { - "node": ">=22" - } - }, - "node_modules/@simple-libs/stream-utils": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@simple-libs/stream-utils/-/stream-utils-2.0.0.tgz", - "integrity": "sha512-fCTuZK4QBa+39Oz9l4OGfJfz+GpwCp3AqO7Zch3to99xHPgstVsRFpeQ8LNd2o1Gv8raL2mCFwiaHh7bFSp5DQ==", - "license": "MIT", - "engines": { - "node": ">=22" - }, - "funding": { - "url": "https://ko-fi.com/dangreen" - } - }, - "node_modules/argue-cli": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/argue-cli/-/argue-cli-3.2.1.tgz", - "integrity": "sha512-h8QG03KSAympQnbZe0k5h/mnQCCkoKO9rVQ0L+F99+NNTV4vm18Lq70WwIKE0aLN3mM1EUf42l960bl6Dd0jOw==", - "license": "MIT", - "engines": { - "node": ">=22" - }, - "funding": { - "url": "https://ko-fi.com/dangreen" - } - }, - "node_modules/conventional-changelog-conventionalcommits": { - "version": "10.4.1", - "resolved": "https://registry.npmjs.org/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-10.4.1.tgz", - "integrity": "sha512-jS1LRFSbRoAr6JbhhRy1JYfNNUj5LM3+v49hRE03CgccsiYqgdVj/RTmrw4J1rylrqijHwdOlJWiJa61JHOgHg==", - "license": "ISC", - "dependencies": { - "@conventional-changelog/template": "^1.4.0" - }, - "engines": { - "node": ">=22" - } - }, - "node_modules/conventional-commits-parser": { - "version": "7.1.4", - "resolved": "https://registry.npmjs.org/conventional-commits-parser/-/conventional-commits-parser-7.1.4.tgz", - "integrity": "sha512-TW3PZHi6hwF4cyu7KKc4kNqD1cgg8AkkK5ge9+zsEfpjaSXOeeIQyNWBr7kx5hR2wFuKVmr0be37RzcpmACQIA==", - "license": "MIT", - "dependencies": { - "@simple-libs/stream-utils": "^2.0.0", - "argue-cli": "^3.1.0" - }, - "bin": { - "conventional-commits-parser": "dist/cli/index.js" - }, - "engines": { - "node": ">=22" - } - }, - "node_modules/picocolors": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", - "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", - "license": "ISC" - } - } -} diff --git a/packages/commitlint-config/package.json b/packages/commitlint-config/package.json deleted file mode 100644 index 87d3fb56..00000000 --- a/packages/commitlint-config/package.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "name": "@hoverkraft/commitlint-config", - "version": "1.0.0", - "description": "Shared Hoverkraft Conventional Commits policy for commits and pull request titles", - "main": "index.json", - "exports": "./index.json", - "files": [ - "index.json" - ], - "author": "hoverkraft", - "license": "MIT", - "repository": { - "type": "git", - "url": "git+https://github.com/hoverkraft-tech/ci-github-common.git", - "directory": "packages/commitlint-config" - }, - "publishConfig": { - "access": "public" - }, - "dependencies": { - "@commitlint/config-conventional": "21.2.4" - }, - "engines": { - "node": ">=24.0.0" - } -} From 5914c86ea03599114ada0e075bd23998ed654d1d Mon Sep 17 00:00:00 2001 From: Emilien Escalle Date: Thu, 3 Dec 2026 18:35:46 +0100 Subject: [PATCH 3/5] chore: use shared commitlint preset in this repository --- .commitlintrc.json | 12 +- .github/dependabot.yml | 19 + Makefile | 4 +- docs/usage/commits.md | 2 + package-lock.json | 995 +++++++++++++++++++++++++++++++++++++++++ package.json | 11 + 6 files changed, 1031 insertions(+), 12 deletions(-) create mode 100644 package-lock.json create mode 100644 package.json diff --git a/.commitlintrc.json b/.commitlintrc.json index c9fc5530..53880424 100644 --- a/.commitlintrc.json +++ b/.commitlintrc.json @@ -1,13 +1,3 @@ { - "extends": ["@commitlint/config-conventional"], - "rules": { - "subject-case": [ - 1, - "never", - ["sentence-case", "start-case", "pascal-case", "upper-case"] - ], - "header-max-length": [1, "always", 100], - "body-max-line-length": [1, "always", 100], - "footer-max-line-length": [1, "always", 100] - } + "extends": ["@hoverkraft/commitlint-config"] } diff --git a/.github/dependabot.yml b/.github/dependabot.yml index b6ab7bcb..4e63cf43 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -69,3 +69,22 @@ updates: time: "04:00" cooldown: default-days: 7 + - package-ecosystem: npm + directory: / + schedule: + interval: weekly + day: friday + time: 04:00 + commit-message: + prefix: build + include: scope + groups: + commit-policy: + patterns: + - "@hoverkraft/commitlint-config" + - "@commitlint/*" + cooldown: + default-days: 7 + semver-major-days: 7 + semver-minor-days: 5 + semver-patch-days: 3 diff --git a/Makefile b/Makefile index 4a609a41..af2951c3 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,8 @@ lint-fix: ## Execute linting and fix -e FIX_BIOME_FORMAT=true \ ) -setup: ## Install npm dependencies for all package.json files under actions/ +setup: ## Install repository tooling and action dependencies + npm ci --ignore-scripts @echo "Installing npm dependencies for all packages..." $(call run_npm_for_packages,install) @@ -43,6 +44,7 @@ define run_linter LINTER_IMAGE="linter:latest"; \ VOLUME="$$DEFAULT_WORKSPACE:$$DEFAULT_WORKSPACE"; \ docker build --platform linux/amd64 --build-arg UID=$(shell id -u) --build-arg GID=$(shell id -g) --tag $$LINTER_IMAGE .; \ + docker run --rm --user $(shell id -u):$(shell id -g) -v "$$VOLUME" -w "$$DEFAULT_WORKSPACE" --entrypoint npm "$$LINTER_IMAGE" ci --ignore-scripts --no-audit --no-fund --cache /tmp/commitlint-npm-cache || exit $$?; \ docker run \ --platform linux/amd64 \ -v $$VOLUME \ diff --git a/docs/usage/commits.md b/docs/usage/commits.md index 623f9f4f..74bbe634 100644 --- a/docs/usage/commits.md +++ b/docs/usage/commits.md @@ -66,6 +66,8 @@ Before local linting, run `npm ci --ignore-scripts` at the repository root. The shared Super-Linter image supplies the conventional preset only. Repositories using another application language still need a root tooling manifest and lockfile, or a custom lint image that includes the pinned preset. +This repository's `make setup` and `make lint` install the root tooling dependencies +with lifecycle scripts disabled. Call both shared workflows and keep their versions aligned. Grant `contents: read` to the semantic workflow job so it can check out the repository configuration. diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 00000000..821f4703 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,995 @@ +{ + "name": "hoverkraft-tech-ci-github-common-tooling", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "hoverkraft-tech-ci-github-common-tooling", + "devDependencies": { + "@commitlint/cli": "21.3.0", + "@hoverkraft/commitlint-config": "0.0.2" + }, + "engines": { + "node": ">=24.0.0" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.29.17", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.17.tgz", + "integrity": "sha512-IdlVpcDeoDATtN2cfmnVk0A4XJKhu7SlpGuSaiOFdko09YC1MD07WokWUSEdw5R2o4o8VObX2LzViQW6VXnzkA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-validator-identifier": "^7.29.17", + "js-tokens": "^4.0.0", + "picocolors": "^1.1.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.29.17", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.17.tgz", + "integrity": "sha512-AG+olLB+teKhkQ2WYJeaZqJwNLjtWTz1waQIP/tEYITzVzpdHLP7IXx2c/bH2JTsNCgvWlkqdCv91xcb8lul8Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@commitlint/cli": { + "version": "21.3.0", + "resolved": "https://registry.npmjs.org/@commitlint/cli/-/cli-21.3.0.tgz", + "integrity": "sha512-64hJOwbVJJHG22QtHtJyyvksh9cvNN8fS6LhazEayjaR0vY20uug9RL5wMqyA7FV5sqfXC5PunyPMsxHqATRPA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@commitlint/config-conventional": "^21.3.0", + "@commitlint/format": "^21.3.0", + "@commitlint/lint": "^21.3.0", + "@commitlint/load": "^21.3.0", + "@commitlint/read": "^21.3.0", + "@commitlint/types": "^21.3.0", + "tinyexec": "^1.0.0", + "yargs": "^18.0.0" + }, + "bin": { + "commitlint": "cli.js" + }, + "engines": { + "node": ">=22.12.0" + } + }, + "node_modules/@commitlint/config-conventional": { + "version": "21.3.0", + "resolved": "https://registry.npmjs.org/@commitlint/config-conventional/-/config-conventional-21.3.0.tgz", + "integrity": "sha512-jWTouDSbhDqlJyJCN3RW0v7nxhU28MsUb5Gsrp8An6W4Xqa3GkrvjMdRbnoVX7S8oVgHy12p8Pmq2r8PCPOQ7w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@commitlint/types": "^21.3.0", + "conventional-changelog-conventionalcommits": "^10.0.0" + }, + "engines": { + "node": ">=22.12.0" + } + }, + "node_modules/@commitlint/config-validator": { + "version": "21.3.0", + "resolved": "https://registry.npmjs.org/@commitlint/config-validator/-/config-validator-21.3.0.tgz", + "integrity": "sha512-7xpkUIhTOrkZAZ89Qdflb3FuZNFe1wFLF17qqxCUJUtw6X6jLZk1ziIj+fzAeW64KaMW/T5MHHa/KaQCoCghqw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@commitlint/types": "^21.3.0", + "ajv": "^8.11.0" + }, + "engines": { + "node": ">=22.12.0" + } + }, + "node_modules/@commitlint/ensure": { + "version": "21.3.0", + "resolved": "https://registry.npmjs.org/@commitlint/ensure/-/ensure-21.3.0.tgz", + "integrity": "sha512-quMTkkqv/ESih+faPbSBW9guBEmSDXfJMtTYTQvV3iz5leLO6Wqes8q5N6TtLkF113pO9zu1soW09BdbTskcnQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@commitlint/types": "^21.3.0", + "es-toolkit": "^1.46.0" + }, + "engines": { + "node": ">=22.12.0" + } + }, + "node_modules/@commitlint/execute-rule": { + "version": "21.0.1", + "resolved": "https://registry.npmjs.org/@commitlint/execute-rule/-/execute-rule-21.0.1.tgz", + "integrity": "sha512-RifH+FmImozKBE6mozhF4K3r2RRKP7SMi/Q/zLCmExtp5e05lhHOUYqGBlFBAGNHaZxU/WYw1XuugYK9jQzqnA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=22.12.0" + } + }, + "node_modules/@commitlint/format": { + "version": "21.3.0", + "resolved": "https://registry.npmjs.org/@commitlint/format/-/format-21.3.0.tgz", + "integrity": "sha512-iY/pqG9e+cgJoxN02oai+2iDzmCODrSOVn/C/ggDiEtUBRu+8jU+tvRz3ola+w7RNIPp9JPJNInQAkX77r9MiQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@commitlint/types": "^21.3.0", + "picocolors": "^1.1.1" + }, + "engines": { + "node": ">=22.12.0" + } + }, + "node_modules/@commitlint/is-ignored": { + "version": "21.3.0", + "resolved": "https://registry.npmjs.org/@commitlint/is-ignored/-/is-ignored-21.3.0.tgz", + "integrity": "sha512-YF13lm57pxSN++LklBZmrAMOPAJSm/jNm3ictyRoFw2Zro7d9cMRttQ4pLKPE+UVHzbUCq+hVrZKtH9hGKG9gw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@commitlint/types": "^21.3.0", + "semver": "^7.6.0" + }, + "engines": { + "node": ">=22.12.0" + } + }, + "node_modules/@commitlint/lint": { + "version": "21.3.0", + "resolved": "https://registry.npmjs.org/@commitlint/lint/-/lint-21.3.0.tgz", + "integrity": "sha512-SyuGd4clg7My/Z6+OKDIh9vYlwTjTGlePKkDp92pU28EE80WVnzShZCmjD00mMGMWkFB+LdzNFm+eX31+CPHaw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@commitlint/is-ignored": "^21.3.0", + "@commitlint/parse": "^21.3.0", + "@commitlint/rules": "^21.3.0", + "@commitlint/types": "^21.3.0" + }, + "engines": { + "node": ">=22.12.0" + } + }, + "node_modules/@commitlint/load": { + "version": "21.3.0", + "resolved": "https://registry.npmjs.org/@commitlint/load/-/load-21.3.0.tgz", + "integrity": "sha512-1TBooVkFOEvvyf9cxpNTC9iBxtc6lPjzRjVVyaGywLjaRIdlUgeEZwxaSFCKGl2Vu35uAnO4eoeaCkfF8QXjpg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@commitlint/config-validator": "^21.3.0", + "@commitlint/execute-rule": "^21.0.1", + "@commitlint/resolve-extends": "^21.3.0", + "@commitlint/types": "^21.3.0", + "cosmiconfig": "^9.0.1", + "es-toolkit": "^1.46.0", + "is-plain-obj": "^4.1.0", + "jiti": "^2.6.1", + "picocolors": "^1.1.1" + }, + "engines": { + "node": ">=22.12.0" + } + }, + "node_modules/@commitlint/message": { + "version": "21.2.0", + "resolved": "https://registry.npmjs.org/@commitlint/message/-/message-21.2.0.tgz", + "integrity": "sha512-YxGoiXD/HXNXLJPrQwE5poXa+XH0CBEm+mdvbHQP0g6MV/dmJyUFCzPNzZbxL93GvZ70TmtTK0Z0/IBpAqHv8g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=22.12.0" + } + }, + "node_modules/@commitlint/parse": { + "version": "21.3.0", + "resolved": "https://registry.npmjs.org/@commitlint/parse/-/parse-21.3.0.tgz", + "integrity": "sha512-y1gy51vLPxfpagSDZfHqOfkpbHZBFKYk6PIe2uN7Qc+rxOpTAp1NstQSjbJ8DxiMkfeMtlCMuGC1QOf+HGVdEQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@commitlint/types": "^21.3.0", + "conventional-changelog-angular": "^9.0.0", + "conventional-commits-parser": "^7.0.0" + }, + "engines": { + "node": ">=22.12.0" + } + }, + "node_modules/@commitlint/read": { + "version": "21.3.0", + "resolved": "https://registry.npmjs.org/@commitlint/read/-/read-21.3.0.tgz", + "integrity": "sha512-lEmt2O8RQ9ywSmAI+HW/VbOXBmz+0KuVFhr38eqcr/bWRySTUu7kE6w/K370KPDlTHlv4XMYSaRp/n5WXt9soQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@commitlint/top-level": "^21.2.0", + "@commitlint/types": "^21.3.0", + "@conventional-changelog/git-client": "^3.0.0", + "tinyexec": "^1.0.0" + }, + "engines": { + "node": ">=22.12.0" + } + }, + "node_modules/@commitlint/resolve-extends": { + "version": "21.3.0", + "resolved": "https://registry.npmjs.org/@commitlint/resolve-extends/-/resolve-extends-21.3.0.tgz", + "integrity": "sha512-YTRgtoB/0fLGK5lL1zN8RKe9PsKoh79qCnXUjocKhlbkLR16vwYLtkdWUFhj+UA4vQPEmJI4U1nJJHwlijUxIg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@commitlint/config-validator": "^21.3.0", + "@commitlint/types": "^21.3.0", + "es-toolkit": "^1.46.0", + "global-directory": "^5.0.0", + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=22.12.0" + } + }, + "node_modules/@commitlint/rules": { + "version": "21.3.0", + "resolved": "https://registry.npmjs.org/@commitlint/rules/-/rules-21.3.0.tgz", + "integrity": "sha512-xq6eQIazhsJRvfXygKbrhDL0zlHQa0tfHtPW1t7+8LEAVMQ6ALpXdqUjvWWzwNUr0ydt0aCqSO1o+Dqa7f7pKA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@commitlint/ensure": "^21.3.0", + "@commitlint/message": "^21.2.0", + "@commitlint/to-lines": "^21.0.1", + "@commitlint/types": "^21.3.0" + }, + "engines": { + "node": ">=22.12.0" + } + }, + "node_modules/@commitlint/to-lines": { + "version": "21.0.1", + "resolved": "https://registry.npmjs.org/@commitlint/to-lines/-/to-lines-21.0.1.tgz", + "integrity": "sha512-bd1BFII7p1EQZre9Kaj+kKaMFP3cFCdt21K7DItVux9XP5WjLgJ0/Uy1pJJh9aPwVJ6SKg62PxqlZaHI8hQAXw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=22.12.0" + } + }, + "node_modules/@commitlint/top-level": { + "version": "21.2.0", + "resolved": "https://registry.npmjs.org/@commitlint/top-level/-/top-level-21.2.0.tgz", + "integrity": "sha512-Y5gmQ+KxzqCrBFJfLvFEPvvwD3LDiNZoTT2yeFBm96M8qhmqSzQc5DvX3rheAaAMjyIvMXOCLS/mWfdpONsjyQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "escalade": "^3.2.0" + }, + "engines": { + "node": ">=22.12.0" + } + }, + "node_modules/@commitlint/types": { + "version": "21.3.0", + "resolved": "https://registry.npmjs.org/@commitlint/types/-/types-21.3.0.tgz", + "integrity": "sha512-3tg5Ea8vNvA1a1oBoyTcRXNJwVWZec9LBxud8XYmljNeYtya2ZToaGUyFlAfctiHIHDmf1Ijq5F8zXmnEY9r2w==", + "dev": true, + "license": "MIT", + "dependencies": { + "conventional-commits-parser": "^7.0.0", + "picocolors": "^1.1.1" + }, + "engines": { + "node": ">=22.12.0" + } + }, + "node_modules/@conventional-changelog/git-client": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/@conventional-changelog/git-client/-/git-client-3.2.0.tgz", + "integrity": "sha512-sD/E0vzpkoDz/dqM1Hhv0ihC4KBw6RXjefeO8SG1XrX+wGkMxe1pKeedkKDPCtr2JjuhbuS9aJNgOvnT8hbeBw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@simple-libs/child-process-utils": "^2.0.0", + "@simple-libs/stream-utils": "^2.0.0", + "verkit": "^0.5.0" + }, + "engines": { + "node": ">=22" + }, + "peerDependencies": { + "conventional-commits-filter": "^6.0.1", + "conventional-commits-parser": "^7.1.3" + }, + "peerDependenciesMeta": { + "conventional-commits-filter": { + "optional": true + }, + "conventional-commits-parser": { + "optional": true + } + } + }, + "node_modules/@conventional-changelog/template": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/@conventional-changelog/template/-/template-1.4.1.tgz", + "integrity": "sha512-mHyyEL0eIEqJ6+aF24+AdZRo4bu4W5GdUiCiCx5X7kfDY51ye8GQJ264uOINObrRSKxtSRCOWPpl9hbOy4UzxQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=22" + } + }, + "node_modules/@hoverkraft/commitlint-config": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/@hoverkraft/commitlint-config/-/commitlint-config-0.0.2.tgz", + "integrity": "sha512-dMDBDpsdgu0CEO56vuT4jkQX+6trCGN4SbGXAHLd9mBzzdNtzaJtnEcAvvycdEgxyfSWTW5NAZVTvVaDOxZEpQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@commitlint/config-conventional": "21.2.4" + }, + "engines": { + "node": ">=24.0.0" + } + }, + "node_modules/@hoverkraft/commitlint-config/node_modules/@commitlint/config-conventional": { + "version": "21.2.4", + "resolved": "https://registry.npmjs.org/@commitlint/config-conventional/-/config-conventional-21.2.4.tgz", + "integrity": "sha512-IRldtwgNmR0SySR7wizFbhRmq45lPt6H3XCNTMyVN7jrPLgi8JlTRR6Eg1HLWUQt9P1Lh3k6eY25ilDa47EE6w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@commitlint/types": "^21.2.3", + "conventional-changelog-conventionalcommits": "^10.0.0" + }, + "engines": { + "node": ">=22.12.0" + } + }, + "node_modules/@simple-libs/child-process-utils": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@simple-libs/child-process-utils/-/child-process-utils-2.0.0.tgz", + "integrity": "sha512-dvNoRKLijXnD0XoJAz94pbNuB5GQgDr55UhpSPhffDkTT0Cmcqh9jSCOtwfT2d4H6MI9E7c4SgtMuJXZ6F3c6A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@simple-libs/stream-utils": "^2.0.0" + }, + "engines": { + "node": ">=22" + }, + "funding": { + "url": "https://ko-fi.com/dangreen" + } + }, + "node_modules/@simple-libs/stream-utils": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@simple-libs/stream-utils/-/stream-utils-2.0.0.tgz", + "integrity": "sha512-fCTuZK4QBa+39Oz9l4OGfJfz+GpwCp3AqO7Zch3to99xHPgstVsRFpeQ8LNd2o1Gv8raL2mCFwiaHh7bFSp5DQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=22" + }, + "funding": { + "url": "https://ko-fi.com/dangreen" + } + }, + "node_modules/ajv": { + "version": "8.20.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.20.0.tgz", + "integrity": "sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.3", + "fast-uri": "^3.0.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ansi-regex": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.6.0.tgz", + "integrity": "sha512-XZ5apbzreCbXSKwPjJstu8R0zOi247w3XYwWxtwBXgpZrCyc1Ka7p9/xY0A9/diMewmHbEKz+FIraWaEWjlN5g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/ansi-styles": { + "version": "6.2.3", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz", + "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true, + "license": "Python-2.0" + }, + "node_modules/argue-cli": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/argue-cli/-/argue-cli-3.2.1.tgz", + "integrity": "sha512-h8QG03KSAympQnbZe0k5h/mnQCCkoKO9rVQ0L+F99+NNTV4vm18Lq70WwIKE0aLN3mM1EUf42l960bl6Dd0jOw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=22" + }, + "funding": { + "url": "https://ko-fi.com/dangreen" + } + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/cliui": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-9.0.1.tgz", + "integrity": "sha512-k7ndgKhwoQveBL+/1tqGJYNz097I7WOvwbmmU2AR5+magtbjPWQTS1C5vzGkBC8Ym8UWRzfKUzUUqFLypY4Q+w==", + "dev": true, + "license": "ISC", + "dependencies": { + "string-width": "^7.2.0", + "strip-ansi": "^7.1.0", + "wrap-ansi": "^9.0.0" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/cliui/node_modules/string-width": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-7.2.0.tgz", + "integrity": "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "emoji-regex": "^10.3.0", + "get-east-asian-width": "^1.0.0", + "strip-ansi": "^7.1.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/conventional-changelog-angular": { + "version": "9.4.0", + "resolved": "https://registry.npmjs.org/conventional-changelog-angular/-/conventional-changelog-angular-9.4.0.tgz", + "integrity": "sha512-HdxRxuS8bBXVIuo4V82gvSwAXT0vYQUizrjs/izmPg5JdDstr8v8I5hduGL3iQbG+o310dUDxC4+LetuS5hu9w==", + "dev": true, + "license": "ISC", + "dependencies": { + "@conventional-changelog/template": "^1.4.0" + }, + "engines": { + "node": ">=22" + } + }, + "node_modules/conventional-changelog-conventionalcommits": { + "version": "10.4.1", + "resolved": "https://registry.npmjs.org/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-10.4.1.tgz", + "integrity": "sha512-jS1LRFSbRoAr6JbhhRy1JYfNNUj5LM3+v49hRE03CgccsiYqgdVj/RTmrw4J1rylrqijHwdOlJWiJa61JHOgHg==", + "dev": true, + "license": "ISC", + "dependencies": { + "@conventional-changelog/template": "^1.4.0" + }, + "engines": { + "node": ">=22" + } + }, + "node_modules/conventional-commits-parser": { + "version": "7.1.4", + "resolved": "https://registry.npmjs.org/conventional-commits-parser/-/conventional-commits-parser-7.1.4.tgz", + "integrity": "sha512-TW3PZHi6hwF4cyu7KKc4kNqD1cgg8AkkK5ge9+zsEfpjaSXOeeIQyNWBr7kx5hR2wFuKVmr0be37RzcpmACQIA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@simple-libs/stream-utils": "^2.0.0", + "argue-cli": "^3.1.0" + }, + "bin": { + "conventional-commits-parser": "dist/cli/index.js" + }, + "engines": { + "node": ">=22" + } + }, + "node_modules/cosmiconfig": { + "version": "9.0.2", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-9.0.2.tgz", + "integrity": "sha512-gtTZxTDau1wL7Y7zifc2dd8jHSK/k6BTx/2Xp/BpdlAdnlYWFVt7qhJqgwi7637yRwRQ3qL4ZidbB4I8tA5VOg==", + "dev": true, + "license": "MIT", + "dependencies": { + "env-paths": "^2.2.1", + "import-fresh": "^3.3.0", + "js-yaml": "^4.1.0", + "parse-json": "^5.2.0" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/d-fischer" + }, + "peerDependencies": { + "typescript": ">=4.9.5" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/emoji-regex": { + "version": "10.6.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.6.0.tgz", + "integrity": "sha512-toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A==", + "dev": true, + "license": "MIT" + }, + "node_modules/env-paths": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz", + "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/error-ex": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.4.tgz", + "integrity": "sha512-sqQamAnR14VgCr1A618A3sGrygcpK+HEbenA/HiEAkkUwcZIIB/tgWqHFxWgOyDh4nB4JCRimh79dR5Ywc9MDQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-arrayish": "^0.2.1" + } + }, + "node_modules/es-toolkit": { + "version": "1.53.2", + "resolved": "https://registry.npmjs.org/es-toolkit/-/es-toolkit-1.53.2.tgz", + "integrity": "sha512-iUqZ+NlwH4jUgRmXZUxFBsV/9762TQEa1O4IXLFBmDEjVHScBytKuseX23I0+v9ShZ5MYxEx6WKNzm6IPnex8g==", + "dev": true, + "license": "MIT", + "workspaces": [ + "docs", + "benchmarks", + "tests/types", + "tests/browser-compat" + ] + }, + "node_modules/escalade": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-uri": { + "version": "3.1.9", + "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.9.tgz", + "integrity": "sha512-hS/0Wt3Ya043oKXs0sIxrMpKQITXhMLIrVAKKXi4gozGC9v7YRWVnXIZzjNPTO02M9BdxLCWqK1yRXgNziVyJQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/fastify" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fastify" + } + ], + "license": "BSD-3-Clause" + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "dev": true, + "license": "ISC", + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/get-east-asian-width": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/get-east-asian-width/-/get-east-asian-width-1.7.0.tgz", + "integrity": "sha512-XjH1AECxf0giL2V1aU8vKyRR2ppRUb5c0EvT7zuJTokQ74bNo52zOtghqdWIqrhUD79fo3x0WfKZdOqxF6LG1Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/global-directory": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/global-directory/-/global-directory-5.0.0.tgz", + "integrity": "sha512-1pgFdhK3J2LeM+dVf2Pd424yHx2ou338lC0ErNP2hPx4j8eW1Sp0XqSjNxtk6Tc4Kr5wlWtSvz8cn2yb7/SG/w==", + "dev": true, + "license": "MIT", + "dependencies": { + "ini": "6.0.0" + }, + "engines": { + "node": ">=20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/import-fresh": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz", + "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/import-fresh/node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/ini": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/ini/-/ini-6.0.0.tgz", + "integrity": "sha512-IBTdIkzZNOpqm7q3dRqJvMaldXjDHWkEDfrwGEQTs5eaQMWV+djAhR+wahyNNMAa+qpbDUhBMVt4ZKNwpPm7xQ==", + "dev": true, + "license": "ISC", + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", + "dev": true, + "license": "MIT" + }, + "node_modules/is-plain-obj": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-4.1.0.tgz", + "integrity": "sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/jiti": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.7.0.tgz", + "integrity": "sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==", + "dev": true, + "license": "MIT", + "bin": { + "jiti": "lib/jiti-cli.mjs" + } + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/js-yaml": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.3.2.tgz", + "integrity": "sha512-SFNOvSJ+Dgf/9An904Yx+CgSlIPCkIpao4qo51lpee25TIRejdH3rhR4EZMGoNx3/TP3O+wzWuiTFl4sqbltzA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/puzrin" + }, + { + "type": "github", + "url": "https://github.com/sponsors/nodeca" + } + ], + "license": "MIT", + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", + "dev": true, + "license": "MIT" + }, + "node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true, + "license": "MIT" + }, + "node_modules/lines-and-columns": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", + "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", + "dev": true, + "license": "MIT" + }, + "node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, + "license": "MIT", + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/parse-json": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "dev": true, + "license": "ISC" + }, + "node_modules/require-from-string": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/semver": { + "version": "7.8.6", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.6.tgz", + "integrity": "sha512-9lpSSU4Mly3mrtruwLs1eLK6+gzbzqeBFwRNjIjE+9LuDpWdYctrQlQ3ej1Ilgi7gknpsTRnPoLP8DpCHqHIJw==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/string-width": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-8.3.0.tgz", + "integrity": "sha512-ZbmZM0JCihQN91dWnxoipT2KOEyHqEyfRXUyjuRhW8b/xnqPDoq4gWEVApTVa9db2wN8mmoikgFBbjh71+cGeQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "get-east-asian-width": "^1.5.0", + "strip-ansi": "^7.1.2" + }, + "engines": { + "node": ">=20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/strip-ansi": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.2.0.tgz", + "integrity": "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^6.2.2" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/tinyexec": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-1.4.0.tgz", + "integrity": "sha512-PV6lIcJQh57aFeJDwx16JNHmgFRh5xguzallrDW1qe8nAghYgr5MKz2K5k7wEyV/ygZhdnIAP8+HZSarHPBCsg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + } + }, + "node_modules/verkit": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/verkit/-/verkit-0.5.0.tgz", + "integrity": "sha512-u4J1hr6Y+C/hit34GwL3eIcUf3wngT8TlYUjK7tk0jxydKLAq3sYvifjdTDA6U3KCKRcQCQDGf/srjxfZF3l7g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18.12.0" + }, + "funding": { + "url": "https://github.com/sponsors/sxzz" + } + }, + "node_modules/wrap-ansi": { + "version": "9.0.2", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-9.0.2.tgz", + "integrity": "sha512-42AtmgqjV+X1VpdOfyTGOYRi0/zsoLqtXQckTmqTeybT+BDIbM/Guxo7x3pE2vtpr1ok6xRqM9OpBe+Jyoqyww==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^6.2.1", + "string-width": "^7.0.0", + "strip-ansi": "^7.1.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrap-ansi/node_modules/string-width": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-7.2.0.tgz", + "integrity": "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "emoji-regex": "^10.3.0", + "get-east-asian-width": "^1.0.0", + "strip-ansi": "^7.1.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=10" + } + }, + "node_modules/yargs": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-18.2.0.tgz", + "integrity": "sha512-9OpKOLeaoNFecEp7P6iYbzze/5CqWoH7N3SMs/6y1XF4nMvFMspEGZzJ6uFi9MmQwXhyzqYoSEKO3tvA3Z/o2w==", + "dev": true, + "license": "MIT", + "dependencies": { + "cliui": "^9.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "string-width": "^8.2.1", + "y18n": "^5.0.5", + "yargs-parser": "^22.0.0" + }, + "engines": { + "node": "^20.19.0 || ^22.12.0 || >=23" + } + }, + "node_modules/yargs-parser": { + "version": "22.0.0", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-22.0.0.tgz", + "integrity": "sha512-rwu/ClNdSMpkSrUb+d6BRsSkLUq1fmfsY6TOpYzTwvwkg1/NRG85KBy3kq++A8LKQwX6lsu+aWad+2khvuXrqw==", + "dev": true, + "license": "ISC", + "engines": { + "node": "^20.19.0 || ^22.12.0 || >=23" + } + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 00000000..e11297c2 --- /dev/null +++ b/package.json @@ -0,0 +1,11 @@ +{ + "name": "hoverkraft-tech-ci-github-common-tooling", + "private": true, + "engines": { + "node": ">=24.0.0" + }, + "devDependencies": { + "@commitlint/cli": "21.3.0", + "@hoverkraft/commitlint-config": "0.0.2" + } +} From 288ff1f9e17c7827e6b172a6541aa61a536fb6de Mon Sep 17 00:00:00 2001 From: Emilien Escalle Date: Thu, 3 Dec 2026 18:37:50 +0100 Subject: [PATCH 4/5] fix: quote dependabot schedule time --- .github/dependabot.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 4e63cf43..a7c174cd 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -74,7 +74,7 @@ updates: schedule: interval: weekly day: friday - time: 04:00 + time: "04:00" commit-message: prefix: build include: scope From 39016e2b96cf1b4f86b57c061a46d325156ae526 Mon Sep 17 00:00:00 2001 From: Emilien Escalle Date: Thu, 3 Dec 2026 19:11:17 +0100 Subject: [PATCH 5/5] refactor: bundle shared commitlint policy in title action --- .commitlintrc.json | 12 +- .github/dependabot.yml | 19 - .github/workflows/linter.md | 2 - .github/workflows/linter.yml | 21 - .github/workflows/semantic-pull-request.md | 7 +- .github/workflows/semantic-pull-request.yml | 26 +- Makefile | 4 +- .../quality/lint-pull-request-title/README.md | 2 +- .../lint-pull-request-title/action.yml | 2 +- .../lint-pull-request-title/package-lock.json | 15 +- .../lint-pull-request-title/package.json | 3 +- .../lint-pull-request-title/src/index.js | 2 +- .../lint-pull-request-title/src/index.test.js | 46 +- docs/usage/commits.md | 69 +- package-lock.json | 995 ------------------ package.json | 11 - 16 files changed, 88 insertions(+), 1148 deletions(-) delete mode 100644 package-lock.json delete mode 100644 package.json diff --git a/.commitlintrc.json b/.commitlintrc.json index 53880424..c9fc5530 100644 --- a/.commitlintrc.json +++ b/.commitlintrc.json @@ -1,3 +1,13 @@ { - "extends": ["@hoverkraft/commitlint-config"] + "extends": ["@commitlint/config-conventional"], + "rules": { + "subject-case": [ + 1, + "never", + ["sentence-case", "start-case", "pascal-case", "upper-case"] + ], + "header-max-length": [1, "always", 100], + "body-max-line-length": [1, "always", 100], + "footer-max-line-length": [1, "always", 100] + } } diff --git a/.github/dependabot.yml b/.github/dependabot.yml index a7c174cd..b6ab7bcb 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -69,22 +69,3 @@ updates: time: "04:00" cooldown: default-days: 7 - - package-ecosystem: npm - directory: / - schedule: - interval: weekly - day: friday - time: "04:00" - commit-message: - prefix: build - include: scope - groups: - commit-policy: - patterns: - - "@hoverkraft/commitlint-config" - - "@commitlint/*" - cooldown: - default-days: 7 - semver-major-days: 7 - semver-minor-days: 5 - semver-patch-days: 3 diff --git a/.github/workflows/linter.md b/.github/workflows/linter.md index 3dc2ae90..d461e83a 100644 --- a/.github/workflows/linter.md +++ b/.github/workflows/linter.md @@ -38,8 +38,6 @@ Executes: Commitlint is disabled by default for scheduled and manual runs, and for pushes with no commits (such as creating a tag on an existing commit). Explicit `linter-env` validator settings take precedence. -If the root package.json declares @hoverkraft/commitlint-config, install the -repository's locked dependencies with lifecycle scripts disabled before linting. Include this workflow job in the outer publish-ci-reports workflow dependencies. Its report definition identifies the native Super-Linter summary automatically, diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index ae79404c..93433054 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -8,8 +8,6 @@ # Commitlint is disabled by default for scheduled and manual runs, and for pushes # with no commits (such as creating a tag on an existing commit). # Explicit `linter-env` validator settings take precedence. -# If the root package.json declares @hoverkraft/commitlint-config, install the -# repository's locked dependencies with lifecycle scripts disabled before linting. # # Include this workflow job in the outer publish-ci-reports workflow dependencies. # Its report definition identifies the native Super-Linter summary automatically, @@ -98,25 +96,6 @@ jobs: fetch-depth: 0 persist-credentials: false - - name: Detect shared commitlint preset - id: commitlint-preset - if: hashFiles('package.json') != '' - uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 - with: - script: | - const fs = require('node:fs'); - const path = require('node:path'); - const manifest = JSON.parse(fs.readFileSync(path.join(process.env.GITHUB_WORKSPACE, 'package.json'), 'utf8')); - const preset = '@hoverkraft/commitlint-config'; - core.setOutput('install', Boolean(manifest.dependencies?.[preset] || manifest.devDependencies?.[preset])); - - - name: Install repository commitlint dependencies - if: steps.commitlint-preset.outputs.install == 'true' - uses: hoverkraft-tech/ci-github-nodejs/actions/setup-node@191d7230d57982bfc11d57f68b005f386a6d7fbf # 3.1.1 - with: - working-directory: . - ignore-scripts: "true" - - name: Configure Super-Linter environment id: configure uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 diff --git a/.github/workflows/semantic-pull-request.md b/.github/workflows/semantic-pull-request.md index d331452f..c3aadb9b 100644 --- a/.github/workflows/semantic-pull-request.md +++ b/.github/workflows/semantic-pull-request.md @@ -28,13 +28,10 @@ ## Overview -Validate pull request titles with the same commitlint policy as the shared linter. +Validate pull request titles with the repository's commitlint policy. The lint-pull-request-title action runs on Node.js and reads the repository's root commitlint config. -It falls back to `@commitlint/config-conventional` when no rules are configured. -Repositories can extend `@hoverkraft/commitlint-config` to use the shared Hoverkraft policy. -If the root package.json declares that preset, install the repository's locked dependencies -with lifecycle scripts disabled so title and commit checks use the same preset version. +It falls back to the bundled `@hoverkraft/commitlint-config` when no rules are configured. Contributor and bot titles use the same repository rules; warnings produce annotations. The action owns its dependencies and installs them from its lockfile with lifecycle scripts disabled. Git-generated messages are not exempt by default; repository ignore settings take precedence. diff --git a/.github/workflows/semantic-pull-request.yml b/.github/workflows/semantic-pull-request.yml index a81cffff..2209ab1e 100644 --- a/.github/workflows/semantic-pull-request.yml +++ b/.github/workflows/semantic-pull-request.yml @@ -1,10 +1,7 @@ -# Validate pull request titles with the same commitlint policy as the shared linter. +# Validate pull request titles with the repository's commitlint policy. # # The lint-pull-request-title action runs on Node.js and reads the repository's root commitlint config. -# It falls back to `@commitlint/config-conventional` when no rules are configured. -# Repositories can extend `@hoverkraft/commitlint-config` to use the shared Hoverkraft policy. -# If the root package.json declares that preset, install the repository's locked dependencies -# with lifecycle scripts disabled so title and commit checks use the same preset version. +# It falls back to the bundled `@hoverkraft/commitlint-config` when no rules are configured. # Contributor and bot titles use the same repository rules; warnings produce annotations. # The action owns its dependencies and installs them from its lockfile with lifecycle scripts disabled. # Git-generated messages are not exempt by default; repository ignore settings take precedence. @@ -49,24 +46,5 @@ jobs: with: persist-credentials: false - - name: Detect shared commitlint preset - id: commitlint-preset - if: hashFiles('package.json') != '' - uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 - with: - script: | - const fs = require('node:fs'); - const path = require('node:path'); - const manifest = JSON.parse(fs.readFileSync(path.join(process.env.GITHUB_WORKSPACE, 'package.json'), 'utf8')); - const preset = '@hoverkraft/commitlint-config'; - core.setOutput('install', Boolean(manifest.dependencies?.[preset] || manifest.devDependencies?.[preset])); - - - name: Install repository commitlint dependencies - if: steps.commitlint-preset.outputs.install == 'true' - uses: hoverkraft-tech/ci-github-nodejs/actions/setup-node@191d7230d57982bfc11d57f68b005f386a6d7fbf # 3.1.1 - with: - working-directory: . - ignore-scripts: "true" - - name: Validate title uses: $/actions/quality/lint-pull-request-title diff --git a/Makefile b/Makefile index af2951c3..4a609a41 100644 --- a/Makefile +++ b/Makefile @@ -17,8 +17,7 @@ lint-fix: ## Execute linting and fix -e FIX_BIOME_FORMAT=true \ ) -setup: ## Install repository tooling and action dependencies - npm ci --ignore-scripts +setup: ## Install npm dependencies for all package.json files under actions/ @echo "Installing npm dependencies for all packages..." $(call run_npm_for_packages,install) @@ -44,7 +43,6 @@ define run_linter LINTER_IMAGE="linter:latest"; \ VOLUME="$$DEFAULT_WORKSPACE:$$DEFAULT_WORKSPACE"; \ docker build --platform linux/amd64 --build-arg UID=$(shell id -u) --build-arg GID=$(shell id -g) --tag $$LINTER_IMAGE .; \ - docker run --rm --user $(shell id -u):$(shell id -g) -v "$$VOLUME" -w "$$DEFAULT_WORKSPACE" --entrypoint npm "$$LINTER_IMAGE" ci --ignore-scripts --no-audit --no-fund --cache /tmp/commitlint-npm-cache || exit $$?; \ docker run \ --platform linux/amd64 \ -v $$VOLUME \ diff --git a/actions/quality/lint-pull-request-title/README.md b/actions/quality/lint-pull-request-title/README.md index c9c51234..90eaeaa9 100644 --- a/actions/quality/lint-pull-request-title/README.md +++ b/actions/quality/lint-pull-request-title/README.md @@ -14,7 +14,7 @@ ## Overview Validate the event's pull request title using the checked-out repository's commitlint config. -Fall back to `@commitlint/config-conventional` when no rules are configured. +Fall back to the bundled `@hoverkraft/commitlint-config` when no rules are configured. The same repository rules apply to people and bots; warnings produce annotations. Requires a pull request event and a repository checkout. Dependencies are installed from the action's lockfile with lifecycle scripts disabled. diff --git a/actions/quality/lint-pull-request-title/action.yml b/actions/quality/lint-pull-request-title/action.yml index 09769c6c..766b93fa 100644 --- a/actions/quality/lint-pull-request-title/action.yml +++ b/actions/quality/lint-pull-request-title/action.yml @@ -1,7 +1,7 @@ name: Lint pull request title description: | Validate the event's pull request title using the checked-out repository's commitlint config. - Fall back to `@commitlint/config-conventional` when no rules are configured. + Fall back to the bundled `@hoverkraft/commitlint-config` when no rules are configured. The same repository rules apply to people and bots; warnings produce annotations. Requires a pull request event and a repository checkout. Dependencies are installed from the action's lockfile with lifecycle scripts disabled. diff --git a/actions/quality/lint-pull-request-title/package-lock.json b/actions/quality/lint-pull-request-title/package-lock.json index 64d96a9b..a07c3f43 100644 --- a/actions/quality/lint-pull-request-title/package-lock.json +++ b/actions/quality/lint-pull-request-title/package-lock.json @@ -12,7 +12,8 @@ "@commitlint/config-conventional": "21.2.4", "@commitlint/format": "21.2.3", "@commitlint/lint": "21.2.4", - "@commitlint/load": "21.2.4" + "@commitlint/load": "21.2.4", + "@hoverkraft/commitlint-config": "0.0.2" }, "engines": { "node": ">=24.0.0" @@ -235,6 +236,18 @@ "node": ">=22" } }, + "node_modules/@hoverkraft/commitlint-config": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/@hoverkraft/commitlint-config/-/commitlint-config-0.0.2.tgz", + "integrity": "sha512-dMDBDpsdgu0CEO56vuT4jkQX+6trCGN4SbGXAHLd9mBzzdNtzaJtnEcAvvycdEgxyfSWTW5NAZVTvVaDOxZEpQ==", + "license": "MIT", + "dependencies": { + "@commitlint/config-conventional": "21.2.4" + }, + "engines": { + "node": ">=24.0.0" + } + }, "node_modules/@simple-libs/stream-utils": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/@simple-libs/stream-utils/-/stream-utils-2.0.0.tgz", diff --git a/actions/quality/lint-pull-request-title/package.json b/actions/quality/lint-pull-request-title/package.json index b0176f04..f2e5a427 100644 --- a/actions/quality/lint-pull-request-title/package.json +++ b/actions/quality/lint-pull-request-title/package.json @@ -15,7 +15,8 @@ "@commitlint/config-conventional": "21.2.4", "@commitlint/format": "21.2.3", "@commitlint/lint": "21.2.4", - "@commitlint/load": "21.2.4" + "@commitlint/load": "21.2.4", + "@hoverkraft/commitlint-config": "0.0.2" }, "engines": { "node": ">=24.0.0" diff --git a/actions/quality/lint-pull-request-title/src/index.js b/actions/quality/lint-pull-request-title/src/index.js index 92e9c6e9..72765c8a 100644 --- a/actions/quality/lint-pull-request-title/src/index.js +++ b/actions/quality/lint-pull-request-title/src/index.js @@ -20,7 +20,7 @@ export async function run({ config = await load( { extends: [ - fileURLToPath(import.meta.resolve("@commitlint/config-conventional")), + fileURLToPath(import.meta.resolve("@hoverkraft/commitlint-config")), ], }, { cwd }, diff --git a/actions/quality/lint-pull-request-title/src/index.test.js b/actions/quality/lint-pull-request-title/src/index.test.js index be4325cd..fbac13ee 100644 --- a/actions/quality/lint-pull-request-title/src/index.test.js +++ b/actions/quality/lint-pull-request-title/src/index.test.js @@ -10,6 +10,9 @@ import { run } from "./index.js"; const conventionalPreset = fileURLToPath( import.meta.resolve("@commitlint/config-conventional"), ); +const sharedPreset = fileURLToPath( + import.meta.resolve("@hoverkraft/commitlint-config"), +); function workspace(t) { const directory = mkdtempSync(join(tmpdir(), "title-policy-")); @@ -25,16 +28,11 @@ const cases = [ ["feature", "feat: add a shared validator", true], ["breaking change", "feat(api)!: require a release tag", true], ["dependency update", "build(deps): bump a dependency", true], - [ - "uppercase subject", - "build(deps): Bump a dependency", - false, - "subject-case", - ], + ["uppercase subject", "build(deps): Bump a dependency", true, "subject-case"], ["unknown type", "unknown: add a validator", false, "type-enum"], ["missing subject", "fix:", false, "subject-empty"], ["trailing period", "fix: add a validator.", false, "subject-full-stop"], - ["long header", "fix: ".padEnd(101, "x"), false, "header-max-length"], + ["long header", "fix: ".padEnd(101, "x"), true, "header-max-length"], ["generated merge", "Merge pull request #1 from example/branch", false], ["generated revert", 'Revert "feat: add a validator"', false], ["version", "v1.2.3", false], @@ -43,7 +41,7 @@ const cases = [ ]; for (const [name, title, valid, rule] of cases) { - test(`conventional fallback: ${name}`, async (t) => { + test(`shared policy fallback: ${name}`, async (t) => { // Arrange const cwd = workspace(t); const core = reporter(); @@ -56,6 +54,7 @@ for (const [name, title, valid, rule] of cases) { assert.equal(core.setFailed.mock.callCount(), valid ? 0 : 1); if (rule) { assert.ok(core.info.mock.calls[0].arguments[0].includes(rule)); + assert.equal(core.warning.mock.callCount(), valid ? 1 : 0); } }); } @@ -96,11 +95,7 @@ test("repository warnings apply equally to contributors and bots", async (t) => writeFileSync( join(cwd, ".commitlintrc.json"), JSON.stringify({ - extends: [conventionalPreset], - rules: { - "subject-case": [1, "never", ["sentence-case"]], - "header-max-length": [1, "always", 100], - }, + extends: [sharedPreset], }), ); for (const actor of ["contributor", "dependabot[bot]", "renovate[bot]"]) { @@ -152,6 +147,28 @@ test("repository errors still fail when other rules only warn", async (t) => { assert.equal(core.warning.mock.callCount(), 1); }); +test("repository severity overrides remain blocking", async (t) => { + const cwd = workspace(t); + writeFileSync( + join(cwd, ".commitlintrc.json"), + JSON.stringify({ + extends: [sharedPreset], + rules: { "subject-case": [2, "never", ["sentence-case"]] }, + }), + ); + const core = reporter(); + await run({ + core, + context: { + payload: { pull_request: { title: "build(deps): Bump a dependency" } }, + }, + cwd, + }); + assert.equal(core.setFailed.mock.callCount(), 1); + assert.match(core.info.mock.calls[0].arguments[0], /subject-case/); + assert.equal(core.warning.mock.callCount(), 0); +}); + test("loads relative presets and repository plugins from a JavaScript config", async (t) => { // Arrange const cwd = workspace(t); @@ -238,8 +255,7 @@ test("resolves the bundled preset without installing repository dependencies", ( writeFileSync( join(cwd, ".commitlintrc.json"), JSON.stringify({ - extends: ["@commitlint/config-conventional"], - rules: { "subject-case": [1, "never", ["sentence-case"]] }, + extends: ["@hoverkraft/commitlint-config"], }), ); diff --git a/docs/usage/commits.md b/docs/usage/commits.md index 74bbe634..ff7cb3c5 100644 --- a/docs/usage/commits.md +++ b/docs/usage/commits.md @@ -20,16 +20,9 @@ Use commitlint's standard configuration formats, such as `.commitlintrc.json`, Keep one configuration source. Extend a preset and override only the rules that need different behavior. See the [commitlint configuration reference](https://commitlint.js.org/reference/configuration.html). -Use the versioned -[`@hoverkraft/commitlint-config` preset](https://github.com/hoverkraft-tech/commitlint-config) -to share the policy across repositories. Once a version has been published, install -it at the repository root and commit the manifest and lockfile: - -```bash -npm install --save-dev --save-exact @commitlint/cli @hoverkraft/commitlint-config -``` - -Configure the repository to extend it: +The [title action](../../actions/quality/lint-pull-request-title/README.md) bundles +[`@hoverkraft/commitlint-config`](https://github.com/hoverkraft-tech/commitlint-config) +and uses it when no rules are configured. A repository can also extend it explicitly: ```json { @@ -37,37 +30,16 @@ Configure the repository to extend it: } ``` -The preset extends the conventional configuration, keeping type, subject and -whitespace errors blocking while reporting subject casing and line lengths as -warnings. These warnings apply equally to people and bots. A repository can choose -stricter rules, which can still reject generated Dependabot messages. The image -and title workflow do not silently override repository severities. - -The dedicated repository owns policy tests, package versioning and npm publication. -See its [usage guide](https://github.com/hoverkraft-tech/commitlint-config/blob/main/docs/usage/commits.md) -for the policy and its [release guide](https://github.com/hoverkraft-tech/commitlint-config/blob/main/docs/development/releasing.md) -for publication prerequisites. - -The Super-Linter image supplies the conventional preset as a fallback when no -configuration is found. The title action follows commitlint's `--default-config` -behavior: it uses the conventional preset when configuration resolves to no rules. +The shared preset keeps conventional types, required subjects and whitespace rules +blocking. Subject casing and line lengths produce warnings for all authors. +Repository overrides take precedence, including stricter severity settings. Invalid configuration and missing presets fail validation. -## Local and CI validation - -Both reusable workflows detect `@hoverkraft/commitlint-config` in the root -`package.json` dependencies or devDependencies. They install the repository's -locked root dependencies with lifecycle scripts disabled before validating -commits or titles. This installs the full root dependency set; installation -failures stop the check. The installed preset version takes precedence over -globally available configuration. +The Super-Linter image supplies `@commitlint/config-conventional` as +its fallback. See this repository's [configuration](../../.commitlintrc.json) for +matching warning severities. Additional presets must be available to the image. -Before local linting, run `npm ci --ignore-scripts` at the repository root. The -shared Super-Linter image supplies the conventional preset only. Repositories -using another application language still need a root tooling manifest and lockfile, -or a custom lint image that includes the pinned preset. -This repository's `make setup` and `make lint` install the root tooling dependencies -with lifecycle scripts disabled. +## Local and CI validation Call both shared workflows and keep their versions aligned. Grant `contents: read` to the semantic workflow job so it can check out the repository configuration. @@ -77,9 +49,11 @@ changes in that PR take effect after merging. No secrets are required. The standalone [lint-pull-request-title action](../../actions/quality/lint-pull-request-title/README.md) requires a checkout when called directly. It owns its locked dependencies and -installs them with lifecycle scripts disabled. The bundled conventional preset is -available without installing the repository's dependencies. Install any additional -presets or plugins before calling the action. Relative presets resolve from the +installs them with lifecycle scripts disabled. The bundled shared and conventional +presets are available without a root npm manifest or repository dependency installation. +The action release pins their versions. Locally installed presets take precedence; +install dependencies first when the repository's lockfile must select the version. +Install additional presets or plugins before calling the action. Relative presets resolve from the repository configuration. Repository rules, parser settings, plugins and ignore settings are respected. Git-generated messages are not exempt as PR titles unless the repository explicitly configures that behavior. Warnings appear as GitHub @@ -90,7 +64,8 @@ Use the same Super-Linter image version in local linting and CI. Run the reposit warnings in Super-Linter, and leave `ENABLE_COMMITLINT_STRICT_MODE` disabled if warnings should remain nonblocking. Node.js projects with a local `commit-msg` hook need `@commitlint/cli` and their configured presets installed; let the hook discover the -same root configuration. +same root configuration. Follow the [preset usage guide](https://github.com/hoverkraft-tech/commitlint-config/blob/main/docs/usage/commits.md) +for local installation. Merge settings must preserve a validated conventional message. If squash merging is enabled, use the validated PR title for the resulting commit. A passing title @@ -112,10 +87,10 @@ or commit-body lines may exceed the preset's length limits. Configure the desire severity in the repository's commitlint rules. Updating the Dependabot configuration does not rewrite existing commits. -`prefix: build` also applies to development dependencies unless `prefix-development` -overrides it. `include: scope` adds `deps` or `deps-dev`. Keep group names concise -because they appear in titles. Dependabot requires its configuration in each -repository's `.github` directory and has no documented remote `extends` mechanism; -the shared npm preset configures commitlint, not Dependabot. +Nx workspaces keep `@commitlint/config-nx-scopes` after the shared preset in +`extends`. Install workspace dependencies before calling the title action so Nx +can discover project scopes. For these repositories, omit Dependabot's +`include: scope`: its `deps` and `deps-dev` scopes are not Nx project names. +An unscoped `build:` update remains valid without weakening scope validation. For Renovate, enable semantic commits and use `build` as `semanticCommitType`. diff --git a/package-lock.json b/package-lock.json deleted file mode 100644 index 821f4703..00000000 --- a/package-lock.json +++ /dev/null @@ -1,995 +0,0 @@ -{ - "name": "hoverkraft-tech-ci-github-common-tooling", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { - "name": "hoverkraft-tech-ci-github-common-tooling", - "devDependencies": { - "@commitlint/cli": "21.3.0", - "@hoverkraft/commitlint-config": "0.0.2" - }, - "engines": { - "node": ">=24.0.0" - } - }, - "node_modules/@babel/code-frame": { - "version": "7.29.17", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.17.tgz", - "integrity": "sha512-IdlVpcDeoDATtN2cfmnVk0A4XJKhu7SlpGuSaiOFdko09YC1MD07WokWUSEdw5R2o4o8VObX2LzViQW6VXnzkA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-validator-identifier": "^7.29.17", - "js-tokens": "^4.0.0", - "picocolors": "^1.1.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-validator-identifier": { - "version": "7.29.17", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.17.tgz", - "integrity": "sha512-AG+olLB+teKhkQ2WYJeaZqJwNLjtWTz1waQIP/tEYITzVzpdHLP7IXx2c/bH2JTsNCgvWlkqdCv91xcb8lul8Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@commitlint/cli": { - "version": "21.3.0", - "resolved": "https://registry.npmjs.org/@commitlint/cli/-/cli-21.3.0.tgz", - "integrity": "sha512-64hJOwbVJJHG22QtHtJyyvksh9cvNN8fS6LhazEayjaR0vY20uug9RL5wMqyA7FV5sqfXC5PunyPMsxHqATRPA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@commitlint/config-conventional": "^21.3.0", - "@commitlint/format": "^21.3.0", - "@commitlint/lint": "^21.3.0", - "@commitlint/load": "^21.3.0", - "@commitlint/read": "^21.3.0", - "@commitlint/types": "^21.3.0", - "tinyexec": "^1.0.0", - "yargs": "^18.0.0" - }, - "bin": { - "commitlint": "cli.js" - }, - "engines": { - "node": ">=22.12.0" - } - }, - "node_modules/@commitlint/config-conventional": { - "version": "21.3.0", - "resolved": "https://registry.npmjs.org/@commitlint/config-conventional/-/config-conventional-21.3.0.tgz", - "integrity": "sha512-jWTouDSbhDqlJyJCN3RW0v7nxhU28MsUb5Gsrp8An6W4Xqa3GkrvjMdRbnoVX7S8oVgHy12p8Pmq2r8PCPOQ7w==", - "dev": true, - "license": "MIT", - "dependencies": { - "@commitlint/types": "^21.3.0", - "conventional-changelog-conventionalcommits": "^10.0.0" - }, - "engines": { - "node": ">=22.12.0" - } - }, - "node_modules/@commitlint/config-validator": { - "version": "21.3.0", - "resolved": "https://registry.npmjs.org/@commitlint/config-validator/-/config-validator-21.3.0.tgz", - "integrity": "sha512-7xpkUIhTOrkZAZ89Qdflb3FuZNFe1wFLF17qqxCUJUtw6X6jLZk1ziIj+fzAeW64KaMW/T5MHHa/KaQCoCghqw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@commitlint/types": "^21.3.0", - "ajv": "^8.11.0" - }, - "engines": { - "node": ">=22.12.0" - } - }, - "node_modules/@commitlint/ensure": { - "version": "21.3.0", - "resolved": "https://registry.npmjs.org/@commitlint/ensure/-/ensure-21.3.0.tgz", - "integrity": "sha512-quMTkkqv/ESih+faPbSBW9guBEmSDXfJMtTYTQvV3iz5leLO6Wqes8q5N6TtLkF113pO9zu1soW09BdbTskcnQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@commitlint/types": "^21.3.0", - "es-toolkit": "^1.46.0" - }, - "engines": { - "node": ">=22.12.0" - } - }, - "node_modules/@commitlint/execute-rule": { - "version": "21.0.1", - "resolved": "https://registry.npmjs.org/@commitlint/execute-rule/-/execute-rule-21.0.1.tgz", - "integrity": "sha512-RifH+FmImozKBE6mozhF4K3r2RRKP7SMi/Q/zLCmExtp5e05lhHOUYqGBlFBAGNHaZxU/WYw1XuugYK9jQzqnA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=22.12.0" - } - }, - "node_modules/@commitlint/format": { - "version": "21.3.0", - "resolved": "https://registry.npmjs.org/@commitlint/format/-/format-21.3.0.tgz", - "integrity": "sha512-iY/pqG9e+cgJoxN02oai+2iDzmCODrSOVn/C/ggDiEtUBRu+8jU+tvRz3ola+w7RNIPp9JPJNInQAkX77r9MiQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@commitlint/types": "^21.3.0", - "picocolors": "^1.1.1" - }, - "engines": { - "node": ">=22.12.0" - } - }, - "node_modules/@commitlint/is-ignored": { - "version": "21.3.0", - "resolved": "https://registry.npmjs.org/@commitlint/is-ignored/-/is-ignored-21.3.0.tgz", - "integrity": "sha512-YF13lm57pxSN++LklBZmrAMOPAJSm/jNm3ictyRoFw2Zro7d9cMRttQ4pLKPE+UVHzbUCq+hVrZKtH9hGKG9gw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@commitlint/types": "^21.3.0", - "semver": "^7.6.0" - }, - "engines": { - "node": ">=22.12.0" - } - }, - "node_modules/@commitlint/lint": { - "version": "21.3.0", - "resolved": "https://registry.npmjs.org/@commitlint/lint/-/lint-21.3.0.tgz", - "integrity": "sha512-SyuGd4clg7My/Z6+OKDIh9vYlwTjTGlePKkDp92pU28EE80WVnzShZCmjD00mMGMWkFB+LdzNFm+eX31+CPHaw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@commitlint/is-ignored": "^21.3.0", - "@commitlint/parse": "^21.3.0", - "@commitlint/rules": "^21.3.0", - "@commitlint/types": "^21.3.0" - }, - "engines": { - "node": ">=22.12.0" - } - }, - "node_modules/@commitlint/load": { - "version": "21.3.0", - "resolved": "https://registry.npmjs.org/@commitlint/load/-/load-21.3.0.tgz", - "integrity": "sha512-1TBooVkFOEvvyf9cxpNTC9iBxtc6lPjzRjVVyaGywLjaRIdlUgeEZwxaSFCKGl2Vu35uAnO4eoeaCkfF8QXjpg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@commitlint/config-validator": "^21.3.0", - "@commitlint/execute-rule": "^21.0.1", - "@commitlint/resolve-extends": "^21.3.0", - "@commitlint/types": "^21.3.0", - "cosmiconfig": "^9.0.1", - "es-toolkit": "^1.46.0", - "is-plain-obj": "^4.1.0", - "jiti": "^2.6.1", - "picocolors": "^1.1.1" - }, - "engines": { - "node": ">=22.12.0" - } - }, - "node_modules/@commitlint/message": { - "version": "21.2.0", - "resolved": "https://registry.npmjs.org/@commitlint/message/-/message-21.2.0.tgz", - "integrity": "sha512-YxGoiXD/HXNXLJPrQwE5poXa+XH0CBEm+mdvbHQP0g6MV/dmJyUFCzPNzZbxL93GvZ70TmtTK0Z0/IBpAqHv8g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=22.12.0" - } - }, - "node_modules/@commitlint/parse": { - "version": "21.3.0", - "resolved": "https://registry.npmjs.org/@commitlint/parse/-/parse-21.3.0.tgz", - "integrity": "sha512-y1gy51vLPxfpagSDZfHqOfkpbHZBFKYk6PIe2uN7Qc+rxOpTAp1NstQSjbJ8DxiMkfeMtlCMuGC1QOf+HGVdEQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@commitlint/types": "^21.3.0", - "conventional-changelog-angular": "^9.0.0", - "conventional-commits-parser": "^7.0.0" - }, - "engines": { - "node": ">=22.12.0" - } - }, - "node_modules/@commitlint/read": { - "version": "21.3.0", - "resolved": "https://registry.npmjs.org/@commitlint/read/-/read-21.3.0.tgz", - "integrity": "sha512-lEmt2O8RQ9ywSmAI+HW/VbOXBmz+0KuVFhr38eqcr/bWRySTUu7kE6w/K370KPDlTHlv4XMYSaRp/n5WXt9soQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@commitlint/top-level": "^21.2.0", - "@commitlint/types": "^21.3.0", - "@conventional-changelog/git-client": "^3.0.0", - "tinyexec": "^1.0.0" - }, - "engines": { - "node": ">=22.12.0" - } - }, - "node_modules/@commitlint/resolve-extends": { - "version": "21.3.0", - "resolved": "https://registry.npmjs.org/@commitlint/resolve-extends/-/resolve-extends-21.3.0.tgz", - "integrity": "sha512-YTRgtoB/0fLGK5lL1zN8RKe9PsKoh79qCnXUjocKhlbkLR16vwYLtkdWUFhj+UA4vQPEmJI4U1nJJHwlijUxIg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@commitlint/config-validator": "^21.3.0", - "@commitlint/types": "^21.3.0", - "es-toolkit": "^1.46.0", - "global-directory": "^5.0.0", - "resolve-from": "^5.0.0" - }, - "engines": { - "node": ">=22.12.0" - } - }, - "node_modules/@commitlint/rules": { - "version": "21.3.0", - "resolved": "https://registry.npmjs.org/@commitlint/rules/-/rules-21.3.0.tgz", - "integrity": "sha512-xq6eQIazhsJRvfXygKbrhDL0zlHQa0tfHtPW1t7+8LEAVMQ6ALpXdqUjvWWzwNUr0ydt0aCqSO1o+Dqa7f7pKA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@commitlint/ensure": "^21.3.0", - "@commitlint/message": "^21.2.0", - "@commitlint/to-lines": "^21.0.1", - "@commitlint/types": "^21.3.0" - }, - "engines": { - "node": ">=22.12.0" - } - }, - "node_modules/@commitlint/to-lines": { - "version": "21.0.1", - "resolved": "https://registry.npmjs.org/@commitlint/to-lines/-/to-lines-21.0.1.tgz", - "integrity": "sha512-bd1BFII7p1EQZre9Kaj+kKaMFP3cFCdt21K7DItVux9XP5WjLgJ0/Uy1pJJh9aPwVJ6SKg62PxqlZaHI8hQAXw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=22.12.0" - } - }, - "node_modules/@commitlint/top-level": { - "version": "21.2.0", - "resolved": "https://registry.npmjs.org/@commitlint/top-level/-/top-level-21.2.0.tgz", - "integrity": "sha512-Y5gmQ+KxzqCrBFJfLvFEPvvwD3LDiNZoTT2yeFBm96M8qhmqSzQc5DvX3rheAaAMjyIvMXOCLS/mWfdpONsjyQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "escalade": "^3.2.0" - }, - "engines": { - "node": ">=22.12.0" - } - }, - "node_modules/@commitlint/types": { - "version": "21.3.0", - "resolved": "https://registry.npmjs.org/@commitlint/types/-/types-21.3.0.tgz", - "integrity": "sha512-3tg5Ea8vNvA1a1oBoyTcRXNJwVWZec9LBxud8XYmljNeYtya2ZToaGUyFlAfctiHIHDmf1Ijq5F8zXmnEY9r2w==", - "dev": true, - "license": "MIT", - "dependencies": { - "conventional-commits-parser": "^7.0.0", - "picocolors": "^1.1.1" - }, - "engines": { - "node": ">=22.12.0" - } - }, - "node_modules/@conventional-changelog/git-client": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/@conventional-changelog/git-client/-/git-client-3.2.0.tgz", - "integrity": "sha512-sD/E0vzpkoDz/dqM1Hhv0ihC4KBw6RXjefeO8SG1XrX+wGkMxe1pKeedkKDPCtr2JjuhbuS9aJNgOvnT8hbeBw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@simple-libs/child-process-utils": "^2.0.0", - "@simple-libs/stream-utils": "^2.0.0", - "verkit": "^0.5.0" - }, - "engines": { - "node": ">=22" - }, - "peerDependencies": { - "conventional-commits-filter": "^6.0.1", - "conventional-commits-parser": "^7.1.3" - }, - "peerDependenciesMeta": { - "conventional-commits-filter": { - "optional": true - }, - "conventional-commits-parser": { - "optional": true - } - } - }, - "node_modules/@conventional-changelog/template": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/@conventional-changelog/template/-/template-1.4.1.tgz", - "integrity": "sha512-mHyyEL0eIEqJ6+aF24+AdZRo4bu4W5GdUiCiCx5X7kfDY51ye8GQJ264uOINObrRSKxtSRCOWPpl9hbOy4UzxQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=22" - } - }, - "node_modules/@hoverkraft/commitlint-config": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/@hoverkraft/commitlint-config/-/commitlint-config-0.0.2.tgz", - "integrity": "sha512-dMDBDpsdgu0CEO56vuT4jkQX+6trCGN4SbGXAHLd9mBzzdNtzaJtnEcAvvycdEgxyfSWTW5NAZVTvVaDOxZEpQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@commitlint/config-conventional": "21.2.4" - }, - "engines": { - "node": ">=24.0.0" - } - }, - "node_modules/@hoverkraft/commitlint-config/node_modules/@commitlint/config-conventional": { - "version": "21.2.4", - "resolved": "https://registry.npmjs.org/@commitlint/config-conventional/-/config-conventional-21.2.4.tgz", - "integrity": "sha512-IRldtwgNmR0SySR7wizFbhRmq45lPt6H3XCNTMyVN7jrPLgi8JlTRR6Eg1HLWUQt9P1Lh3k6eY25ilDa47EE6w==", - "dev": true, - "license": "MIT", - "dependencies": { - "@commitlint/types": "^21.2.3", - "conventional-changelog-conventionalcommits": "^10.0.0" - }, - "engines": { - "node": ">=22.12.0" - } - }, - "node_modules/@simple-libs/child-process-utils": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@simple-libs/child-process-utils/-/child-process-utils-2.0.0.tgz", - "integrity": "sha512-dvNoRKLijXnD0XoJAz94pbNuB5GQgDr55UhpSPhffDkTT0Cmcqh9jSCOtwfT2d4H6MI9E7c4SgtMuJXZ6F3c6A==", - "dev": true, - "license": "MIT", - "dependencies": { - "@simple-libs/stream-utils": "^2.0.0" - }, - "engines": { - "node": ">=22" - }, - "funding": { - "url": "https://ko-fi.com/dangreen" - } - }, - "node_modules/@simple-libs/stream-utils": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@simple-libs/stream-utils/-/stream-utils-2.0.0.tgz", - "integrity": "sha512-fCTuZK4QBa+39Oz9l4OGfJfz+GpwCp3AqO7Zch3to99xHPgstVsRFpeQ8LNd2o1Gv8raL2mCFwiaHh7bFSp5DQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=22" - }, - "funding": { - "url": "https://ko-fi.com/dangreen" - } - }, - "node_modules/ajv": { - "version": "8.20.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.20.0.tgz", - "integrity": "sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==", - "dev": true, - "license": "MIT", - "dependencies": { - "fast-deep-equal": "^3.1.3", - "fast-uri": "^3.0.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/ansi-regex": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.6.0.tgz", - "integrity": "sha512-XZ5apbzreCbXSKwPjJstu8R0zOi247w3XYwWxtwBXgpZrCyc1Ka7p9/xY0A9/diMewmHbEKz+FIraWaEWjlN5g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-regex?sponsor=1" - } - }, - "node_modules/ansi-styles": { - "version": "6.2.3", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz", - "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true, - "license": "Python-2.0" - }, - "node_modules/argue-cli": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/argue-cli/-/argue-cli-3.2.1.tgz", - "integrity": "sha512-h8QG03KSAympQnbZe0k5h/mnQCCkoKO9rVQ0L+F99+NNTV4vm18Lq70WwIKE0aLN3mM1EUf42l960bl6Dd0jOw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=22" - }, - "funding": { - "url": "https://ko-fi.com/dangreen" - } - }, - "node_modules/callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/cliui": { - "version": "9.0.1", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-9.0.1.tgz", - "integrity": "sha512-k7ndgKhwoQveBL+/1tqGJYNz097I7WOvwbmmU2AR5+magtbjPWQTS1C5vzGkBC8Ym8UWRzfKUzUUqFLypY4Q+w==", - "dev": true, - "license": "ISC", - "dependencies": { - "string-width": "^7.2.0", - "strip-ansi": "^7.1.0", - "wrap-ansi": "^9.0.0" - }, - "engines": { - "node": ">=20" - } - }, - "node_modules/cliui/node_modules/string-width": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-7.2.0.tgz", - "integrity": "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "emoji-regex": "^10.3.0", - "get-east-asian-width": "^1.0.0", - "strip-ansi": "^7.1.0" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/conventional-changelog-angular": { - "version": "9.4.0", - "resolved": "https://registry.npmjs.org/conventional-changelog-angular/-/conventional-changelog-angular-9.4.0.tgz", - "integrity": "sha512-HdxRxuS8bBXVIuo4V82gvSwAXT0vYQUizrjs/izmPg5JdDstr8v8I5hduGL3iQbG+o310dUDxC4+LetuS5hu9w==", - "dev": true, - "license": "ISC", - "dependencies": { - "@conventional-changelog/template": "^1.4.0" - }, - "engines": { - "node": ">=22" - } - }, - "node_modules/conventional-changelog-conventionalcommits": { - "version": "10.4.1", - "resolved": "https://registry.npmjs.org/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-10.4.1.tgz", - "integrity": "sha512-jS1LRFSbRoAr6JbhhRy1JYfNNUj5LM3+v49hRE03CgccsiYqgdVj/RTmrw4J1rylrqijHwdOlJWiJa61JHOgHg==", - "dev": true, - "license": "ISC", - "dependencies": { - "@conventional-changelog/template": "^1.4.0" - }, - "engines": { - "node": ">=22" - } - }, - "node_modules/conventional-commits-parser": { - "version": "7.1.4", - "resolved": "https://registry.npmjs.org/conventional-commits-parser/-/conventional-commits-parser-7.1.4.tgz", - "integrity": "sha512-TW3PZHi6hwF4cyu7KKc4kNqD1cgg8AkkK5ge9+zsEfpjaSXOeeIQyNWBr7kx5hR2wFuKVmr0be37RzcpmACQIA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@simple-libs/stream-utils": "^2.0.0", - "argue-cli": "^3.1.0" - }, - "bin": { - "conventional-commits-parser": "dist/cli/index.js" - }, - "engines": { - "node": ">=22" - } - }, - "node_modules/cosmiconfig": { - "version": "9.0.2", - "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-9.0.2.tgz", - "integrity": "sha512-gtTZxTDau1wL7Y7zifc2dd8jHSK/k6BTx/2Xp/BpdlAdnlYWFVt7qhJqgwi7637yRwRQ3qL4ZidbB4I8tA5VOg==", - "dev": true, - "license": "MIT", - "dependencies": { - "env-paths": "^2.2.1", - "import-fresh": "^3.3.0", - "js-yaml": "^4.1.0", - "parse-json": "^5.2.0" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/d-fischer" - }, - "peerDependencies": { - "typescript": ">=4.9.5" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/emoji-regex": { - "version": "10.6.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.6.0.tgz", - "integrity": "sha512-toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A==", - "dev": true, - "license": "MIT" - }, - "node_modules/env-paths": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz", - "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/error-ex": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.4.tgz", - "integrity": "sha512-sqQamAnR14VgCr1A618A3sGrygcpK+HEbenA/HiEAkkUwcZIIB/tgWqHFxWgOyDh4nB4JCRimh79dR5Ywc9MDQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "is-arrayish": "^0.2.1" - } - }, - "node_modules/es-toolkit": { - "version": "1.53.2", - "resolved": "https://registry.npmjs.org/es-toolkit/-/es-toolkit-1.53.2.tgz", - "integrity": "sha512-iUqZ+NlwH4jUgRmXZUxFBsV/9762TQEa1O4IXLFBmDEjVHScBytKuseX23I0+v9ShZ5MYxEx6WKNzm6IPnex8g==", - "dev": true, - "license": "MIT", - "workspaces": [ - "docs", - "benchmarks", - "tests/types", - "tests/browser-compat" - ] - }, - "node_modules/escalade": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", - "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "dev": true, - "license": "MIT" - }, - "node_modules/fast-uri": { - "version": "3.1.9", - "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.9.tgz", - "integrity": "sha512-hS/0Wt3Ya043oKXs0sIxrMpKQITXhMLIrVAKKXi4gozGC9v7YRWVnXIZzjNPTO02M9BdxLCWqK1yRXgNziVyJQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/fastify" - }, - { - "type": "opencollective", - "url": "https://opencollective.com/fastify" - } - ], - "license": "BSD-3-Clause" - }, - "node_modules/get-caller-file": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", - "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", - "dev": true, - "license": "ISC", - "engines": { - "node": "6.* || 8.* || >= 10.*" - } - }, - "node_modules/get-east-asian-width": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/get-east-asian-width/-/get-east-asian-width-1.7.0.tgz", - "integrity": "sha512-XjH1AECxf0giL2V1aU8vKyRR2ppRUb5c0EvT7zuJTokQ74bNo52zOtghqdWIqrhUD79fo3x0WfKZdOqxF6LG1Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/global-directory": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/global-directory/-/global-directory-5.0.0.tgz", - "integrity": "sha512-1pgFdhK3J2LeM+dVf2Pd424yHx2ou338lC0ErNP2hPx4j8eW1Sp0XqSjNxtk6Tc4Kr5wlWtSvz8cn2yb7/SG/w==", - "dev": true, - "license": "MIT", - "dependencies": { - "ini": "6.0.0" - }, - "engines": { - "node": ">=20" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/import-fresh": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz", - "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/import-fresh/node_modules/resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/ini": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/ini/-/ini-6.0.0.tgz", - "integrity": "sha512-IBTdIkzZNOpqm7q3dRqJvMaldXjDHWkEDfrwGEQTs5eaQMWV+djAhR+wahyNNMAa+qpbDUhBMVt4ZKNwpPm7xQ==", - "dev": true, - "license": "ISC", - "engines": { - "node": "^20.17.0 || >=22.9.0" - } - }, - "node_modules/is-arrayish": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", - "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", - "dev": true, - "license": "MIT" - }, - "node_modules/is-plain-obj": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-4.1.0.tgz", - "integrity": "sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/jiti": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.7.0.tgz", - "integrity": "sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==", - "dev": true, - "license": "MIT", - "bin": { - "jiti": "lib/jiti-cli.mjs" - } - }, - "node_modules/js-tokens": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/js-yaml": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.3.2.tgz", - "integrity": "sha512-SFNOvSJ+Dgf/9An904Yx+CgSlIPCkIpao4qo51lpee25TIRejdH3rhR4EZMGoNx3/TP3O+wzWuiTFl4sqbltzA==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/puzrin" - }, - { - "type": "github", - "url": "https://github.com/sponsors/nodeca" - } - ], - "license": "MIT", - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/json-parse-even-better-errors": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", - "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", - "dev": true, - "license": "MIT" - }, - "node_modules/json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", - "dev": true, - "license": "MIT" - }, - "node_modules/lines-and-columns": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", - "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", - "dev": true, - "license": "MIT" - }, - "node_modules/parent-module": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", - "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", - "dev": true, - "license": "MIT", - "dependencies": { - "callsites": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/parse-json": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", - "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.0.0", - "error-ex": "^1.3.1", - "json-parse-even-better-errors": "^2.3.0", - "lines-and-columns": "^1.1.6" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/picocolors": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", - "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", - "dev": true, - "license": "ISC" - }, - "node_modules/require-from-string": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", - "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/resolve-from": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", - "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/semver": { - "version": "7.8.6", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.6.tgz", - "integrity": "sha512-9lpSSU4Mly3mrtruwLs1eLK6+gzbzqeBFwRNjIjE+9LuDpWdYctrQlQ3ej1Ilgi7gknpsTRnPoLP8DpCHqHIJw==", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/string-width": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-8.3.0.tgz", - "integrity": "sha512-ZbmZM0JCihQN91dWnxoipT2KOEyHqEyfRXUyjuRhW8b/xnqPDoq4gWEVApTVa9db2wN8mmoikgFBbjh71+cGeQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "get-east-asian-width": "^1.5.0", - "strip-ansi": "^7.1.2" - }, - "engines": { - "node": ">=20" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/strip-ansi": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.2.0.tgz", - "integrity": "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-regex": "^6.2.2" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/strip-ansi?sponsor=1" - } - }, - "node_modules/tinyexec": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-1.4.0.tgz", - "integrity": "sha512-PV6lIcJQh57aFeJDwx16JNHmgFRh5xguzallrDW1qe8nAghYgr5MKz2K5k7wEyV/ygZhdnIAP8+HZSarHPBCsg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - } - }, - "node_modules/verkit": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/verkit/-/verkit-0.5.0.tgz", - "integrity": "sha512-u4J1hr6Y+C/hit34GwL3eIcUf3wngT8TlYUjK7tk0jxydKLAq3sYvifjdTDA6U3KCKRcQCQDGf/srjxfZF3l7g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18.12.0" - }, - "funding": { - "url": "https://github.com/sponsors/sxzz" - } - }, - "node_modules/wrap-ansi": { - "version": "9.0.2", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-9.0.2.tgz", - "integrity": "sha512-42AtmgqjV+X1VpdOfyTGOYRi0/zsoLqtXQckTmqTeybT+BDIbM/Guxo7x3pE2vtpr1ok6xRqM9OpBe+Jyoqyww==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^6.2.1", - "string-width": "^7.0.0", - "strip-ansi": "^7.1.0" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/wrap-ansi/node_modules/string-width": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-7.2.0.tgz", - "integrity": "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "emoji-regex": "^10.3.0", - "get-east-asian-width": "^1.0.0", - "strip-ansi": "^7.1.0" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/y18n": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", - "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", - "dev": true, - "license": "ISC", - "engines": { - "node": ">=10" - } - }, - "node_modules/yargs": { - "version": "18.2.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-18.2.0.tgz", - "integrity": "sha512-9OpKOLeaoNFecEp7P6iYbzze/5CqWoH7N3SMs/6y1XF4nMvFMspEGZzJ6uFi9MmQwXhyzqYoSEKO3tvA3Z/o2w==", - "dev": true, - "license": "MIT", - "dependencies": { - "cliui": "^9.0.1", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "string-width": "^8.2.1", - "y18n": "^5.0.5", - "yargs-parser": "^22.0.0" - }, - "engines": { - "node": "^20.19.0 || ^22.12.0 || >=23" - } - }, - "node_modules/yargs-parser": { - "version": "22.0.0", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-22.0.0.tgz", - "integrity": "sha512-rwu/ClNdSMpkSrUb+d6BRsSkLUq1fmfsY6TOpYzTwvwkg1/NRG85KBy3kq++A8LKQwX6lsu+aWad+2khvuXrqw==", - "dev": true, - "license": "ISC", - "engines": { - "node": "^20.19.0 || ^22.12.0 || >=23" - } - } - } -} diff --git a/package.json b/package.json deleted file mode 100644 index e11297c2..00000000 --- a/package.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "name": "hoverkraft-tech-ci-github-common-tooling", - "private": true, - "engines": { - "node": ">=24.0.0" - }, - "devDependencies": { - "@commitlint/cli": "21.3.0", - "@hoverkraft/commitlint-config": "0.0.2" - } -}