From 198ea793a8f07146b20cf545a18ea5933e054e6d Mon Sep 17 00:00:00 2001 From: "sweep-ai[bot]" <128439645+sweep-ai[bot]@users.noreply.github.com> Date: Thu, 28 Dec 2023 04:15:55 +0000 Subject: [PATCH] feat: Updated scripts/githooks/commit-msg --- scripts/githooks/commit-msg | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/githooks/commit-msg b/scripts/githooks/commit-msg index e91555c..f4e52a0 100644 --- a/scripts/githooks/commit-msg +++ b/scripts/githooks/commit-msg @@ -48,6 +48,12 @@ test "" = "$(grep '^Signed-off-by: ' "$1" | exit 1 } +# Check if go-gitlint is installed +if ! command -v $GITLINT_DIR &>/dev/null; then + printError "go-gitlint not found. Installing..." + make tools || make tools.verify.go-gitlint +fi + # TODO: go-gitlint dir set GITLINT_DIR="./_output/tools/go-gitlint"