Skip to content

Commit

Permalink
build: add commitlint exception for Dependabot
Browse files Browse the repository at this point in the history
Dependabot commit messages may not respect the 100-chars max length
rule. We need to have an exception for all Dependabot commits.

See dependabot/dependabot-core#2445

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
  • Loading branch information
simonpasquier committed Aug 16, 2023
1 parent d04edc3 commit 4c64b29
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions commitlint.config.js
@@ -0,0 +1,12 @@
const Configuration = {
/*
* Resolve and load @commitlint/config-conventional from node_modules.
*/
extends: ['@commitlint/config-conventional'],
/*
* Ignore dependabot commit messages until https://github.com/dependabot/dependabot-core/issues/2445 is fixed.
*/
ignores: [(msg) => /Signed-off-by: dependabot\[bot]/m.test(msg)],
};

module.exports = Configuration;

0 comments on commit 4c64b29

Please sign in to comment.