mirror of
https://github.com/sst/opencode.git
synced 2025-07-07 16:14:59 +00:00
hooks
This commit is contained in:
parent
8619c50976
commit
3862184ccb
4 changed files with 17 additions and 6 deletions
15
scripts/hooks
Executable file
15
scripts/hooks
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [ ! -d ".git" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
mkdir -p .git/hooks
|
||||
|
||||
cat > .git/hooks/pre-push << 'EOF'
|
||||
#!/bin/sh
|
||||
bun run typecheck
|
||||
EOF
|
||||
|
||||
chmod +x .git/hooks/pre-push
|
||||
echo "✅ Pre-push hook installed"
|
|
@ -1,3 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
set -e
|
||||
goreleaser build --clean --snapshot --skip validate
|
Loading…
Add table
Add a link
Reference in a new issue