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 are prefixed by `build(deps):`. Adding an
exception for the `build` prefix.

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
  • Loading branch information
simonpasquier committed Aug 9, 2023
1 parent d04edc3 commit 9d5decb
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
const Configuration = {
/*
* Resolve and load @commitlint/config-conventional from node_modules.
*/
extends: ['@commitlint/config-conventional'],
/*
* Any rules defined here will override rules from @commitlint/config-conventional
*/
rules: {
/*
* Add 'build' to the default list for Dependabot PRs.
*/
'type-enum': [2, 'always', ['feat', 'fix', 'docs', 'style', 'refactor', 'test', 'revert', 'build']],
},
};

module.exports = Configuration;

0 comments on commit 9d5decb

Please sign in to comment.