fix: whitelist Revert keyword

This commit is contained in:
Pavel Denisjuk 2022-02-21 17:00:46 +01:00 committed by GitHub
parent 2b8587efef
commit 91c1d3f229
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}