From a522e16150a777be581459d7573394da68c5f4fd Mon Sep 17 00:00:00 2001 From: Nano Taboada Date: Thu, 1 May 2025 09:30:13 -0300 Subject: [PATCH] chore(ci): update ignores for Dependabot-style commits --- commitlint.config.mjs | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/commitlint.config.mjs b/commitlint.config.mjs index 9617c32..197735d 100644 --- a/commitlint.config.mjs +++ b/commitlint.config.mjs @@ -1,16 +1,14 @@ -// .commitlint.config.mjs -import conventional from '@commitlint/config-conventional'; +import conventional from "@commitlint/config-conventional"; export default { - ...conventional, - rules: { - 'header-max-length': [2, 'always', 80], - 'body-max-line-length': [2, 'always', 80], - }, - ignores: [ - // skip any commit whose body contains the Dependabot signature - (message) => message.includes('Signed‑off‑by: dependabot[bot]'), - // skip any Dependabot‑style bump header - (message) => /^chore\(deps(-dev)?\): bump /.test(message), - ], + ...conventional, + rules: { + "header-max-length": [2, "always", 80], + "body-max-line-length": [2, "always", 80], + }, + ignores: [ + // bypass Dependabot-style commits + (message) => /^chore\(deps(-dev)?\): bump /.test(message), + (message) => /Signed-off-by: dependabot\[bot\]/.test(message), + ], };