Skip to content

Commit c488489

Browse files
committed
fix(commitlint): exempt dependabot commits from body-max-line-length
Dependabot's auto-generated commit body always appends changelog and release-notes links whose length depends on the upstream package's own GitHub path, so for scoped or nested packages these lines routinely exceed the 100-character limit @commitlint/config-conventional enforces, well outside this repo's control. Skip commitlint entirely for any commit carrying the 'Signed-off-by: dependabot[bot]' trailer, which GitHub's Dependabot integration adds verbatim and isn't configurable via dependabot.yml. The header still conforms to type-enum on its own, so only the unenforceable auto-generated body is exempted; human-authored commits remain fully linted.
1 parent e58d20d commit c488489

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

commitlint.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ export default {
55
rules: {
66
'type-enum': [2, 'always', commitTypes.map((t) => t.type)],
77
},
8+
ignores: [(message: string) => message.includes('Signed-off-by: dependabot[bot]')],
89
};

0 commit comments

Comments
 (0)