From 04ef8c3ba328eb079e0fbb793fb1bd142d100f04 Mon Sep 17 00:00:00 2001 From: Kara Brightwell Date: Wed, 29 May 2024 10:20:13 +0100 Subject: [PATCH] backstage: disallow chore commits, introduce backstage commits CPP-2112 --- commitlint.config.js | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/commitlint.config.js b/commitlint.config.js index 4fedde6da..36ae71300 100644 --- a/commitlint.config.js +++ b/commitlint.config.js @@ -1 +1,21 @@ -module.exports = { extends: ['@commitlint/config-conventional'] } +module.exports = { + extends: ['@commitlint/config-conventional'], + rules: { + 'type-enum': [ + 'Error', + 'always', + [ + 'backstage', + 'build', + 'ci', + 'docs', + 'feat', + 'fix', + 'perf', + 'refactor', + 'revert', + 'style', + 'test', + ], + ], +}