mirror of
https://github.com/webiny/action-conventional-commits.git
synced 2024-11-10 12:09:34 +01:00
chore: update build
This commit is contained in:
parent
138e7df3d6
commit
ef414e5205
1 changed files with 10 additions and 8 deletions
2
dist/main/index.js
vendored
2
dist/main/index.js
vendored
|
@ -489,6 +489,7 @@ const DEFAULT_COMMIT_TYPES = [
|
||||||
"refactor",
|
"refactor",
|
||||||
"test",
|
"test",
|
||||||
"build",
|
"build",
|
||||||
|
"perf",
|
||||||
"ci",
|
"ci",
|
||||||
"chore",
|
"chore",
|
||||||
"revert",
|
"revert",
|
||||||
|
@ -510,6 +511,7 @@ const isValidCommitMessage = (message, availableTypes = DEFAULT_COMMIT_TYPES) =>
|
||||||
}
|
}
|
||||||
possiblyValidCommitType = possiblyValidCommitType
|
possiblyValidCommitType = possiblyValidCommitType
|
||||||
.replace(/\s/g, "") // Remove all whitespace
|
.replace(/\s/g, "") // Remove all whitespace
|
||||||
|
.replace(/\!/g, "") // Remove bang for notify breaking change
|
||||||
.replace(/()/g, "") // Remove all whitespace
|
.replace(/()/g, "") // Remove all whitespace
|
||||||
.replace(/[^a-z]/g, ""); // Only leave [a-z] characters.
|
.replace(/[^a-z]/g, ""); // Only leave [a-z] characters.
|
||||||
return availableTypes.includes(possiblyValidCommitType);
|
return availableTypes.includes(possiblyValidCommitType);
|
||||||
|
|
Loading…
Reference in a new issue