diff --git a/src/isValidCommitMesage.ts b/src/isValidCommitMesage.ts index 8e3d78c..fb7ba18 100644 --- a/src/isValidCommitMesage.ts +++ b/src/isValidCommitMesage.ts @@ -16,7 +16,7 @@ const DEFAULT_COMMIT_TYPES = [ const isValidCommitMessage = (message, availableTypes = DEFAULT_COMMIT_TYPES): boolean => { // Exceptions. // 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; }