Git pre-commit and pre-push actions

This commit is contained in:
2025-03-02 18:17:46 +01:00
parent 284ab3079c
commit 057d0a25e6
6 changed files with 4092 additions and 598 deletions

7
.husky/pre-commit Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
STAGED_CS=`git diff --cached --name-only --diff-filter=ACMR --pickaxe-regex "*.cs" | tr '\n' ';'`
dotnet husky run --group pre-commit --args $STAGED_CS