Files
monitor-im-flur/githooks/pre-commit
Arif Hasanic 90d32e29f4
Some checks failed
CI / build (pull_request) Successful in 14s
CI / build (push) Successful in 11s
CI / lint (pull_request) Successful in 9s
CI / create-and-publish-docker-image (pull_request) Successful in 13s
CI / lint (push) Successful in 9s
CI / create-and-publish-docker-image (push) Has been cancelled
add githooks and setup.sh
2025-08-31 18:14:50 +02:00

13 lines
143 B
Bash
Executable File

#!/bin/sh
echo "Running pre-commit hooks..."
biome check --write
biome lint --write
if git diff --quiet; then
exit 0
else
git add -u
fi