From 4f7b85d566184aaebb0e47d676b022ab335cb591 Mon Sep 17 00:00:00 2001 From: "sweep-ai[bot]" <128439645+sweep-ai[bot]@users.noreply.github.com> Date: Wed, 27 Dec 2023 23:30:50 +0000 Subject: [PATCH] feat: Updated scripts/githooks/commit-msg --- scripts/githooks/commit-msg | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/scripts/githooks/commit-msg b/scripts/githooks/commit-msg index e91555c..5a827bb 100644 --- a/scripts/githooks/commit-msg +++ b/scripts/githooks/commit-msg @@ -59,12 +59,10 @@ $GITLINT_DIR \ --body-regex=".*" \ --max-parents=1 -if [ $? -ne 0 ] -then - if ! command -v $GITLINT_DIR &>/dev/null; then - printError "$GITLINT_DIR not found. Please run 'make tools' OR 'make tools.verify.go-gitlint' make verto install it." - fi +if ! command -v $GITLINT_DIR &>/dev/null; then + printError "$GITLINT_DIR tool is not available and the commit message linting process will be skipped." + exit 0 +else printError "Please fix your commit message to match kubecub coding standards" printError "https://gist.github.com/cubxxw/126b72104ac0b0ca484c9db09c3e5694#file-githook-md" - exit 1 fi \ No newline at end of file