Skip to content

Commit 2ec6fc7

Browse files
authored
chore: add commit lint "ignore" rule (#1145)
## Description Prevents commitlint from throwing header-max-length errors on long, dependabot-generated commit titles. ## Related Issue Fixes #1124 ## Type of change - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [x] Other (security config, docs update, etc) ## Checklist before merging - [x] Unit, [Journey](https://github.com/defenseunicorns/pepr/tree/main/journey), [E2E Tests](https://github.com/defenseunicorns/pepr-excellent-examples), [docs](https://github.com/defenseunicorns/pepr/tree/main/docs), [adr](https://github.com/defenseunicorns/pepr/tree/main/adr) added or updated as needed - [x] [Contributor Guide Steps](https://docs.pepr.dev/main/contribute/#submitting-a-pull-request) followed
1 parent f9186c9 commit 2ec6fc7

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Diff for: commitlint.config.js

+8-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
1-
module.exports = { extends: ["@commitlint/config-conventional"] };
1+
module.exports = {
2+
extends: ["@commitlint/config-conventional"],
3+
ignores: [
4+
// prevent header-max-length error on long, dependabot-gen'd commits titles
5+
// https://github.com/dependabot/dependabot-core/issues/2445
6+
(message) => /^chore: bump .+ from .+ to .+$/m.test(message)
7+
],
8+
};

0 commit comments

Comments
 (0)