-
Notifications
You must be signed in to change notification settings - Fork 0
chore: validate Dependabot commits instead of skipping them #22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,3 @@ | ||
| export default { | ||
| extends: ["@commitlint/config-conventional"], | ||
| // Dependabot auto-generates commit bodies with long markdown URLs that exceed | ||
| // body-max-line-length. It won't wrap them, so skip linting its commits while | ||
| // keeping the full ruleset enforced for human authors. | ||
| ignores: [(message) => message.includes("Signed-off-by: dependabot[bot]")], | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [Critical] Exemption removed without switching CI to a commitlint that has the URL exemption This repo's |
||
| }; | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Important] Prefix pin covers only the pre-commit ecosystem
The
commit-message.prefixoverride is added only to thepre-commitblock.uv(line ~19) andgithub-actions(line ~30) still have nocommit-messageconfig, so their first bump PRs still rely on Dependabot's auto-detected prefix — the exact thing this PR's own comment says not to rely on now that commitlint is enforced on every Dependabot commit. Both ecosystems are new (added in #21) with no bump commits yet, so auto-detection has no ecosystem-specific precedent to key off; if it falls back to an unprefixed subject ("Bump foo from 1 to 2"), that fails commitlint'stype-enum/subject-emptyrules and the first uv/actions Dependabot PR breaks CI. Add the samecommit-message: {prefix: ..., include: scope}to theuvandgithub-actionsblocks (e.g.chore/cirespectively) rather than leaving two of three ecosystems on auto-detection.