From 732952802250dc181321c7c154150e419d64a6fe Mon Sep 17 00:00:00 2001 From: Guilherme Souza Date: Sun, 14 Apr 2024 10:25:44 -0300 Subject: [PATCH] chore: commit lint allow breaking change (#338) --- .github/workflows/conventional-commits-lint.js | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/.github/workflows/conventional-commits-lint.js b/.github/workflows/conventional-commits-lint.js index d68fa636..35db22f5 100644 --- a/.github/workflows/conventional-commits-lint.js +++ b/.github/workflows/conventional-commits-lint.js @@ -57,13 +57,6 @@ validate.forEach((payload) => { const { groups } = match if (groups) { - if (groups.breaking) { - console.error( - `PRs are not allowed to declare breaking changes at this stage of the project. Please remove the ! in your PR title or commit message and adjust the functionality to be backward compatible.`, - ); - failed = true; - } - if ( !ALLOWED_CONVENTIONAL_COMMIT_PREFIXES.find( (prefix) => prefix === groups.prefix, @@ -89,13 +82,6 @@ validate.forEach((payload) => { ); failed = true; } - - if (payload.content.match(BREAKING_CHANGE_DIRECTIVE)) { - console.error( - "PR descriptions or commit messages must not contain a BREAKING CHANGE conventional commit directive. Please adjust the functionality to be backward compatible.", - ); - failed = true; - } } });