mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-05 08:10:14 +00:00
Add pre-push type check
This commit is contained in:
parent
f9bd544dba
commit
359c84e855
2 changed files with 15 additions and 0 deletions
|
|
@ -1 +1,8 @@
|
|||
branch="$(git rev-parse --abbrev-ref HEAD)"
|
||||
|
||||
if [ "$branch" = "main" ]; then
|
||||
echo "You can't push directly to main - please check out a branch."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
pnpx lint-staged
|
||||
|
|
|
|||
8
.husky/pre-push
Normal file
8
.husky/pre-push
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
branch="$(git rev-parse --abbrev-ref HEAD)"
|
||||
|
||||
if [ "$branch" = "main" ]; then
|
||||
echo "You can't push directly to main - please check out a branch."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
pnpm check-types
|
||||
Loading…
Add table
Reference in a new issue