From 149ab16928ab2c2611e683e812c7744da4c936d4 Mon Sep 17 00:00:00 2001 From: Nikita Evdokimov Date: Mon, 16 Jan 2023 12:38:31 +0300 Subject: [PATCH] TECH: Less strict commit message hook --- .githooks/commit-msg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.githooks/commit-msg b/.githooks/commit-msg index b15486319..9aafc8bd2 100755 --- a/.githooks/commit-msg +++ b/.githooks/commit-msg @@ -4,7 +4,7 @@ set -eo pipefail gitMessageFile="$1" gitMessage=$(cat $gitMessageFile) -gitMessagePattern="^(Revert \")?(ISSUE-\d+|TECH):\s\w+.*" +gitMessagePattern="^(Revert|Merge|ISSUE-\d+:|TECH:).*" currentBranch="$(git rev-parse --abbrev-ref HEAD)" if ! grep -qP "$gitMessagePattern" "$gitMessageFile"; then