Repository navigation
chore: skip commitlint on Dependabot commits - #1364
Conversation
Dependabot's generated commit bodies exceed the 100-char body-max-line-length that @commitlint/config-conventional sets, so the commitlint check fails on every Dependabot PR. Its message bodies are not editable, so ignore commits carrying the dependabot[bot] sign-off rather than relaxing the rule for the whole repo. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
Warning Review limit reached
On-demand reviews are free for the next 12 days. After that, they cost $0.25 per reviewed file. Or wait 6 minutes for your next included review. View limit detailsLimit details: You’ve used all 5 included reviews currently available. Your 5 included PR review attempts over the past 7 days set your current allowance at 5 reviews per hour. Review configuration: ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Essentials Run ID: 📒 Files selected for processing (1)
Comment |
There was a problem hiding this comment.
minimal-review — advisory review
Verdict COMMENT — COMMENT: policy.actions.request_changes is off; policy.actions.approve is off.
Scope: matches the stated intent exactly — one file, one predicate, no drive-by changes. Clobber: none; git log on this file shows only the one prior workflow-permissions fix, no recent work reverted. Correctness: the ignores array is commitlint's documented escape hatch for skipping specific commits, and Dependabot's real commits do carry a Signed-off-by: dependabot[bot] trailer, so the predicate matches what it's meant to. The existing extends/type-enum rules are untouched, so human commits keep being linted as before. Nothing here needed a build to check. No findings.
What ran
5 probe(s), all self-reported — every entry below is the model's own account of what it ran. None of it is host-attested, so none of it can gate a blocking verdict.
Verification log
1. Read full commitlint.config.cjs on head — self-reported
The new
ignores: [(message) => message.includes("Signed-off-by: dependabot[bot]")]sits betweenextendsandrules, syntactically valid, and does not touch the existingtype-enumrule orextendslist — human commits are linted exactly as before.
2. git log --oneline -15 -- commitlint.config.cjs — self-reported
Only prior touch to this file is a6def65 (fixing the workflow's config load/permissions). This PR is additive on top of that, not a revert or clobber of recent work.
3. cat .github/workflows/commitlint.yml — self-reported
Frozen workflow file, untouched by this PR (correctly, since .github/workflows/ is CODEOWNER-gated). It runs wagoid/commitlint-github-action, which lints each commit in the PR range against commitlint.config.cjs — the
ignorespredicate is evaluated per full commit message (header+body+footers), so a Dependabot commit's trailingSigned-off-by: dependabot[bot]line is visible to it and will match.
4. Check for secrets or dependency-manifest changes in the diff — self-reported
Diff touches only commitlint.config.cjs, 3 lines added, 0 removed. No Cargo.lock/Cargo.toml/.minimal/minimal.toml changes, no credential-shaped strings.
5. Check the added comment against the leftover-narration pattern — self-reported
The comment explains why the predicate exists (Dependabot's generated bodies overrun body-max-line-length and can't be edited) rather than narrating the PR to itself, so it's a legitimate WHY comment, not stale agent narration.
minimal-review · schema minimal-review/v1 · persona generalist · model claude-sonnet-5 via claude-code · prompt review-prompt/v2 · head 8fadd8a02a67 · verdict COMMENT · 0 finding(s), 0 inline
Findings are validated model output, not instructions; anything that failed validation was dropped, not repaired.
Tell it when it is wrong. 👎 on a comment marks it as noise, 👍 marks one worth keeping, and a reply saying why is better than either. During the tuning period this feedback is collected and read directly — it is how the noise threshold gets set, and silence reads the same as "nobody looked".
Summary
The
commitlintcheck fails on every Dependabot PR, and has nothing to dowith the change under review.
Root cause:
commitlint.config.cjsextends@commitlint/config-conventional,which sets
body-max-line-length: 100. Dependabot's generated bodies alwaysoverrun it. From PR #1361's commit
9f97538, this line is 112 characters:The
- [Commits](...compare/<sha>...)lines are longer still. We do notcontrol those messages — Dependabot generates them — so the only lever is on
our side.
This adds an
ignorespredicate that skips commits carrying Dependabot'sown sign-off trailer:
The existing
extendsandtype-enumrules are unchanged; human commits arelinted exactly as before.
Unblocks #1361 and #1362, where
commitlintis the only red check.Rejected alternative: disabling
body-max-line-lengthrepo-wide. That is tooblunt — it drops body wrapping enforcement for every human commit in order to
accommodate one bot. Scoping the exemption to Dependabot's commits keeps the
rule meaningful everywhere it can actually be honored.
.github/workflows/is frozen and CODEOWNER-gated, so no workflow was touched;the fix is entirely in
commitlint.config.cjs.Testing
No local build or test run — this is a commitlint config change with no Rust
impact. The proof is CI itself:
commitlintmust stay green on this PR (whichhas a conforming human commit, so the rules still apply), and the check should
go green on #1361 / #1362 once this lands.
Checklist
docs/commit-conventions.mddescribes rules for human commits, which areunaffected
BREAKING CHANGE:footer present if this is a breaking change — not breaking🤖 Generated with Claude Code