Skip to content

Commit

Permalink
feat: Updated scripts/githooks/commit-msg
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-ai[bot] authored Dec 27, 2023
1 parent ff75477 commit 4f7b85d
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions scripts/githooks/commit-msg
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 4f7b85d

Please sign in to comment.