From 7ee4fda4f503f4087c19e69f27d5145adb7426b1 Mon Sep 17 00:00:00 2001 From: Philippe Boyd Date: Tue, 7 Jun 2022 11:52:00 -0400 Subject: [PATCH] fix: update isDepsCommit to accept build type --- commitlint.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commitlint.config.js b/commitlint.config.js index 68811a6d..75f9e463 100644 --- a/commitlint.config.js +++ b/commitlint.config.js @@ -6,7 +6,7 @@ const bodyMaxLineLength = 100 const validateBodyMaxLengthIgnoringDeps = (parsedCommit) => { const { type, scope, body } = parsedCommit const isDepsCommit = - type === 'chore' && (scope === 'deps' || scope === 'deps-dev') + ['chore', 'build'].includes(type) && ['deps', 'deps-dev'].includes(scope) return [ isDepsCommit || !body || maxLineLength(body, bodyMaxLineLength),