Skip to content

Commit

Permalink
chore: commit lint allow breaking change (#338)
Browse files Browse the repository at this point in the history
  • Loading branch information
grdsdev authored Apr 14, 2024
1 parent 1290bcf commit 7329528
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions .github/workflows/conventional-commits-lint.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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;
}
}
});

Expand Down

0 comments on commit 7329528

Please sign in to comment.