From 9d3e9da1d09b0c7cc99d0730e6092b7247d36f4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20B=C3=A4hler?= Date: Mon, 23 Oct 2023 16:52:36 +0200 Subject: [PATCH] chore(repo): configre commitlint.config.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Oliver Bähler --- commitlint.config.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 commitlint.config.js diff --git a/commitlint.config.js b/commitlint.config.js new file mode 100644 index 00000000..aff134fb --- /dev/null +++ b/commitlint.config.js @@ -0,0 +1,19 @@ +const Configuration = { + extends: ['@commitlint/config-conventional'], + plugins: ['commitlint-plugin-function-rules'], + rules: { + 'scope-enum': [2, 'always', ['all', 'chart', 'operator', 'manifest', 'deps', 'release', 'website', 'repo', 'e2e', 'make']], + 'type-enum': [2, 'always', ['chore', 'ci', 'docs', 'feat', 'test', 'fix', 'sec']], + }, + /* + * Whether commitlint uses the default ignore rules, see the description above. + */ + defaultIgnores: true, + /* + * Custom URL to show upon failure + */ + helpUrl: + 'https://github.com/projectcapsule/capsule/blob/main/CONTRIBUTING.md#commits', + }; + + module.exports = Configuration; \ No newline at end of file