From 5ab2c35996a0af8bf16437a0aa8c85b82aaea204 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Berkefeld?= Date: Fri, 26 May 2023 15:38:35 +0200 Subject: [PATCH] #936: allow "Revert ..." commit messages --- .husky/commit-msg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.husky/commit-msg b/.husky/commit-msg index fdf5fdf80..cf7663854 100644 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -2,7 +2,7 @@ . "$(dirname "$0")/_/husky.sh" INPUT_FILE=$1 START_LINE=`head -n1 $INPUT_FILE` -PATTERN="^(#[[:digit:]]|Merge)" +PATTERN="^(#[[:digit:]]|Merge|Revert)" if ! [[ "$START_LINE" =~ $PATTERN ]] ; then echo "Bad commit message, see example: \"#431 commit message\", you provided: \"$START_LINE\""