From ff7f4667626b2378ea019cf1b65da1d12328a172 Mon Sep 17 00:00:00 2001 From: Laith Al-Saadoon Date: Thu, 14 May 2026 17:04:43 +0000 Subject: [PATCH] chore(ci): allow deps-dev and github_actions commit scopes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Dependabot groups dev-only bumps under `deps-dev` and GitHub Actions bumps under `github_actions`. Both were tripping the `scope-enum` commitlint rule (#100 blocked on its second rebase, and every future devDependency bump would have failed the same way). Enumerate the two bot scopes so Dependabot PRs pass commitlint without manual title rewrites. Verified locally against the live rule: - `build(deps-dev): bump X from ...` → pass - `build(github_actions): bump X from ...` → pass - `feat(cli): ...` → pass (regression check) - `feat(bogus): ...` → fail (rule still enforces) --- commitlint.config.mjs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/commitlint.config.mjs b/commitlint.config.mjs index 3e792c46..e43175c3 100644 --- a/commitlint.config.mjs +++ b/commitlint.config.mjs @@ -3,8 +3,14 @@ * Enforced locally via lefthook `commit-msg` and on PRs via * .github/workflows/commitlint.yml. * - * Allowed types (extend `scope-enum` when new workspace packages land): + * Allowed types (extend `scope-enum` when new workspace packages land or + * Dependabot starts grouping under a new scope): * feat, fix, chore, docs, refactor, perf, test, build, ci, style, revert, release + * + * Bot scopes: Dependabot uses `deps` for production-dep bumps, + * `deps-dev` for devDependency-only bumps, and `github_actions` for + * GitHub Actions bumps. All three are enumerated so the auto-generated + * PRs pass commitlint without manual rewrites. */ export default { extends: ["@commitlint/config-conventional"], @@ -50,6 +56,12 @@ export default { "wiki", "plugin", "deps", + // Dependabot emits `deps-dev` for devDependency-only updates and + // `github_actions` for GitHub Actions bumps. Including both here + // lets commitlint pass on the auto-generated PRs without manual + // rewrites. See `.github/dependabot.yml` for the group config. + "deps-dev", + "github_actions", "ci", "docs", "repo",