From 47f4f7e49423003d6996d9693007b716f2cbdafc Mon Sep 17 00:00:00 2001 From: "sweep-ai[bot]" <128439645+sweep-ai[bot]@users.noreply.github.com> Date: Sat, 30 Dec 2023 03:12:43 +0000 Subject: [PATCH] feat: Updated scripts/githooks/commit-msg --- scripts/githooks/commit-msg | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/githooks/commit-msg b/scripts/githooks/commit-msg index e91555c..2e82917 100644 --- a/scripts/githooks/commit-msg +++ b/scripts/githooks/commit-msg @@ -51,6 +51,10 @@ test "" = "$(grep '^Signed-off-by: ' "$1" | # TODO: go-gitlint dir set GITLINT_DIR="./_output/tools/go-gitlint" +if ! command -v $GITLINT_DIR &>/dev/null; then + make tools || make tools.verify.go-gitlint +fi + $GITLINT_DIR \ --msg-file=$1 \ --subject-regex="^(build|chore|ci|docs|feat|feature|fix|perf|refactor|revert|style|test)(.*)?:\s?.*" \