summaryrefslogtreecommitdiffhomepage
path: root/script/hooks.bat
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2025-07-31 01:25:24 -0400
committerDax Raad <[email protected]>2025-07-31 01:25:24 -0400
commit2d9ed06367516daa184ecf70bb0b2451c06da8d1 (patch)
treee735b78999853aa52d77240a4be7d32e0d09556e /script/hooks.bat
parent50be2aee39289b7e05299e61d53478736ab914cc (diff)
downloadopencode-2d9ed06367516daa184ecf70bb0b2451c06da8d1.tar.gz
opencode-2d9ed06367516daa184ecf70bb0b2451c06da8d1.zip
ci: scripts
Diffstat (limited to 'script/hooks.bat')
-rw-r--r--script/hooks.bat16
1 files changed, 16 insertions, 0 deletions
diff --git a/script/hooks.bat b/script/hooks.bat
new file mode 100644
index 000000000..52d690100
--- /dev/null
+++ b/script/hooks.bat
@@ -0,0 +1,16 @@
+@echo off
+
+if not exist ".git" (
+ exit /b 0
+)
+
+if not exist ".git\hooks" (
+ mkdir ".git\hooks"
+)
+
+(
+ echo #!/bin/sh
+ echo bun run typecheck
+) > ".git\hooks\pre-push"
+
+echo ✅ Pre-push hook installed