From 1e5145f0a3a30aa4b661c3c96efcb38803c20613 Mon Sep 17 00:00:00 2001 From: "sweep-ai[bot]" <128439645+sweep-ai[bot]@users.noreply.github.com> Date: Sat, 30 Dec 2023 11:10:17 +0000 Subject: [PATCH] feat: Updated scripts/githooks/commit-msg --- scripts/githooks/commit-msg | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/githooks/commit-msg b/scripts/githooks/commit-msg index bc76a56..fdcd123 100644 --- a/scripts/githooks/commit-msg +++ b/scripts/githooks/commit-msg @@ -53,7 +53,9 @@ GITLINT_DIR="./_output/tools/go-gitlint" if ! command -v $GITLINT_DIR &>/dev/null; then echo "$GITLINT_DIR not found. Attempting to install it..." - # Add the commands to download and install the go-gitlint tool here + wget -O $GITLINT_DIR https://github.com/jorisroovers/gitlint/releases/download/v0.15.0/gitlint-0.15.0.tar.gz +tar -xzf $GITLINT_DIR -C $GITLINT_DIR +chmod +x $GITLINT_DIR/gitlint if [ $? -ne 0 ]; then printError "Failed to install $GITLINT_DIR. Please run 'make tools' OR 'make tools.verify.go-gitlint' make verto install it manually." exit 1