From 91c1d3f229b0332fe119dc7e8e87b65eedf927e4 Mon Sep 17 00:00:00 2001 From: Pavel Denisjuk Date: Mon, 21 Feb 2022 17:00:46 +0100 Subject: [PATCH] fix: whitelist Revert keyword --- src/isValidCommitMesage.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }