Skip to content

chore(ci): allow deps-dev and github_actions commit scopes#111

Merged
theagenticguy merged 1 commit into
mainfrom
chore/commitlint-scope-enum-bot-scopes
May 14, 2026
Merged

chore(ci): allow deps-dev and github_actions commit scopes#111
theagenticguy merged 1 commit into
mainfrom
chore/commitlint-scope-enum-bot-scopes

Conversation

@theagenticguy
Copy link
Copy Markdown
Owner

Summary

Unblocks Dependabot PRs from tripping commitlint's scope-enum rule.

Dependabot groups its PRs under three scopes:

  • deps — production-dep bumps (already allowed)
  • deps-dev — devDependency-only bumps (was blocked)
  • github_actions — action version bumps (was blocked)

PR #100 (starlight-llms-txt 0.9.0 → 0.10.0) surfaced this gap: 35/36
checks green, only commitlint failed because `build(deps-dev): ...` is
not in the scope enum. Every future devDependency bump would have hit
the same wall.

Change

Adds deps-dev and github_actions to the `scope-enum` list in
`commitlint.config.mjs`. No change to the other rules.

Verified locally

Against the live lefthook rule, right after the edit:

Commit header Expected Actual
`build(deps-dev): bump X from ...` pass pass
`build(github_actions): bump X from ...` pass pass
`feat(cli): add flag` pass pass (regression)
`feat(bogus): should fail` fail fail — `scope must be one of [...]`

Test plan

  • `pnpm exec commitlint` passes on `build(deps-dev): ...` and
    `build(github_actions): ...`.
  • Unknown scopes still fail (rule still enforced).
  • CI `commitlint` job will cover the change once this PR itself runs.

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)
@theagenticguy theagenticguy merged commit 5a36f7f into main May 14, 2026
37 checks passed
@theagenticguy theagenticguy deleted the chore/commitlint-scope-enum-bot-scopes branch May 14, 2026 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant