8000 chore: skip commitlint on Dependabot commits by norrietaylor · Pull Request #1364 · gominimal/minimal · GitHub
[go: up one dir, main page]

Skip to content
8000

chore: skip commitlint on Dependabot commits - #1364

Merged
norrietaylor merged 1 commit into
mainfrom
chore/commitlint-ignore-dependabot
Sep 8, 2026
Merged

norrietaylor merged 1 commit into
mainfrom
chore/commitlint-ignore-dependabot

Conversation

@norrietaylor
Copy link
Copy Markdown
Member

Summary

The commitlint check fails on every Dependabot PR, and has nothing to do
with the change under review.

Root cause: commitlint.config.cjs extends @commitlint/config-conventional,
which sets body-max-line-length: 100. Dependabot's generated bodies always
overrun it. From PR #1361's commit 9f97538, this line is 112 characters:

Bumps the github-actions group with 1 update: [taiki-e/install-action](https://github.com/taiki-e/install-action).

The - [Commits](...compare/<sha>...) lines are longer still. We do not
control those messages — Dependabot generates them — so the only lever is on
our side.

This adds an ignores predicate that skips commits carrying Dependabot's
own sign-off trailer:

ignores: [(message) => message.includes("Signed-off-by: dependabot[bot]")],

The existing extends and type-enum rules are unchanged; human commits are
linted exactly as before.

Unblocks #1361 and #1362, where commitlint is the only red check.

Rejected alternative: disabling body-max-line-length repo-wide. That is too
blunt — 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: commitlint must stay green on this PR (which
has a conforming human commit, so the rules still apply), and the check should
go green on #1361 / #1362 once this lands.

Checklist

  • Docs updated if behavior changed — no behavior change to document;
    docs/commit-conventions.md describes rules for human commits, which are
    unaffected
  • BREAKING CHANGE: footer present if this is a breaking change — not breaking

🤖 Generated with Claude Code

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>
@norrietaylor
norrietaylor requested a review from a team as a code owner September 8, 2026 22:04
@coderabbitai
coderabbitai Bot commented Sep 8, 2026
Copy link
Copy Markdown
Contributor

Warning

Review limit reached

  • Run on-demand review

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.

Check out review usage here.

View limit details

Limit 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.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Essentials

Run ID: 12374db5-b6e1-48c7-9594-5ec16c98006b

📥 Commits

Reviewing files that changed from the base of the PR and between a30ac97 and 8fadd8a.

📒 Files selected for processing (1)
  • commitlint.config.cjs

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 between extends and rules, syntactically valid, and does not touch the existing type-enum rule or extends list — 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 ignores predicate is evaluated per full commit message (header+body+footers), so a Dependabot commit's trailing Signed-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".

@norrietaylor
norrietaylor enabled auto-merge (squash) September 8, 2026 23:11
@norrietaylor
norrietaylor merged commit 6120afd into main Sep 8, 2026
33 checks passed
@norrietaylor
norrietaylor deleted the chore/commitlint-ignore-dependabot branch September 8, 2026 23:13
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.

2 participants

0