Skip to content

Commit 7329528

Browse files
authored
chore: commit lint allow breaking change (#338)
1 parent 1290bcf commit 7329528

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

.github/workflows/conventional-commits-lint.js

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,6 @@ validate.forEach((payload) => {
5757
const { groups } = match
5858

5959
if (groups) {
60-
if (groups.breaking) {
61-
console.error(
62-
`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.`,
63-
);
64-
failed = true;
65-
}
66-
6760
if (
6861
!ALLOWED_CONVENTIONAL_COMMIT_PREFIXES.find(
6962
(prefix) => prefix === groups.prefix,
@@ -89,13 +82,6 @@ validate.forEach((payload) => {
8982
);
9083
failed = true;
9184
}
92-
93-
if (payload.content.match(BREAKING_CHANGE_DIRECTIVE)) {
94-
console.error(
95-
"PR descriptions or commit messages must not contain a BREAKING CHANGE conventional commit directive. Please adjust the functionality to be backward compatible.",
96-
);
97-
failed = true;
98-
}
9985
}
10086
});
10187

0 commit comments

Comments
 (0)