Skip to content

Commit

Permalink
feat: Updated scripts/githooks/pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-ai[bot] authored Dec 28, 2023
1 parent f6e071f commit e4de6d6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/githooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ printError() {
printf "${RED}kubecub : $1${ENDCOLOR}\n"
}

GITLINT_DIR="./_output/tools/go-gitlint"
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."
system("make tools" || "make tools.verify.go-gitlint")
fi
printMessage "Running local kubecub pre-commit hook."

# flutter format .
Expand Down

0 comments on commit e4de6d6

Please sign in to comment.