mirror of
https://github.com/webiny/action-conventional-commits.git
synced 2024-11-27 04:03:49 +01:00
fix: whitelist Revert keyword
This commit is contained in:
parent
2b8587efef
commit
91c1d3f229
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ const DEFAULT_COMMIT_TYPES = [
|
||||||
const isValidCommitMessage = (message, availableTypes = DEFAULT_COMMIT_TYPES): boolean => {
|
const isValidCommitMessage = (message, availableTypes = DEFAULT_COMMIT_TYPES): boolean => {
|
||||||
// Exceptions.
|
// Exceptions.
|
||||||
// This is a message that's auto-generated by git. Can't do much about it unfortunately. Let's allow it.
|
// This is a message that's auto-generated by git. Can't do much about it unfortunately. Let's allow it.
|
||||||
if (message.startsWith("Merge ")) {
|
if (message.startsWith("Merge ") || message.startsWith("Revert ")) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue