chore(ci): bootstrap CI + hooks
Some checks failed
CI / checks (pull_request) Waiting to run
CI / checks (push) Has been cancelled

Squash-merge bootstrap-cicd into integration
This commit is contained in:
2025-09-10 21:48:32 +00:00
parent 575b33f744
commit 408db0d0cc
19 changed files with 671 additions and 0 deletions

19
scripts/setup-hooks Executable file
View File

@@ -0,0 +1,19 @@
#!/usr/bin/env bash
set -euo pipefail
root_dir="$(git rev-parse --show-toplevel 2>/dev/null || pwd)"
mkdir -p "$root_dir/.git/hooks"
for hook in pre-commit pre-push commit-msg; do
src="$root_dir/.githooks/$hook"
dest="$root_dir/.git/hooks/$hook"
if [[ -f "$src" ]]; then
cp "$src" "$dest"
chmod +x "$dest"
echo "Installed hook: $hook"
fi
done
echo "Git hooks installed."