mirror of
https://github.com/webiny/action-conventional-commits.git
synced 2024-11-23 10:21:51 +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",
|
||||
"test",
|
||||
"build",
|
||||
"perf",
|
||||
"ci",
|
||||
"chore",
|
||||
"revert",
|
||||
|
@ -510,6 +511,7 @@ const isValidCommitMessage = (message, availableTypes = DEFAULT_COMMIT_TYPES) =>
|
|||
}
|
||||
possiblyValidCommitType = possiblyValidCommitType
|
||||
.replace(/\s/g, "") // Remove all whitespace
|
||||
.replace(/\!/g, "") // Remove bang for notify breaking change
|
||||
.replace(/()/g, "") // Remove all whitespace
|
||||
.replace(/[^a-z]/g, ""); // Only leave [a-z] characters.
|
||||
return availableTypes.includes(possiblyValidCommitType);
|
||||
|
|
Loading…
Reference in a new issue