mirror of
https://github.com/game-ci/unity-builder.git
synced 2025-07-04 12:25:19 -04:00
Test push block
This commit is contained in:
parent
d98a0ed32d
commit
419c5bb965
37
.husky/pre-commit
Normal file
37
.husky/pre-commit
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
if [ "$LEFTHOOK" = "0" ]; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -t 1 ] ; then
|
||||||
|
exec < /dev/tty ; # <- enables interactive shell
|
||||||
|
fi
|
||||||
|
|
||||||
|
dir="$(git rev-parse --show-toplevel)"
|
||||||
|
|
||||||
|
call_lefthook()
|
||||||
|
{
|
||||||
|
if lefthook.exe -h >/dev/null 2>&1
|
||||||
|
then
|
||||||
|
eval lefthook.exe $@
|
||||||
|
elif test -f "$dir/node_modules/@arkweid/lefthook/bin/lefthook.exe"
|
||||||
|
then
|
||||||
|
eval "$dir/node_modules/@arkweid/lefthook/bin/lefthook.exe $@"
|
||||||
|
elif bundle exec lefthook -h >/dev/null 2>&1
|
||||||
|
then
|
||||||
|
bundle exec lefthook $@
|
||||||
|
elif npx @arkweid/lefthook -h >/dev/null 2>&1
|
||||||
|
then
|
||||||
|
npx @arkweid/lefthook $@
|
||||||
|
elif yarn lefthook -h >/dev/null 2>&1
|
||||||
|
then
|
||||||
|
yarn lefthook $@
|
||||||
|
else
|
||||||
|
echo "Can't find lefthook in PATH"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
call_lefthook "run pre-commit $@"
|
37
.husky/pre-push
Normal file
37
.husky/pre-push
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
if [ "$LEFTHOOK" = "0" ]; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -t 1 ] ; then
|
||||||
|
exec < /dev/tty ; # <- enables interactive shell
|
||||||
|
fi
|
||||||
|
|
||||||
|
dir="$(git rev-parse --show-toplevel)"
|
||||||
|
|
||||||
|
call_lefthook()
|
||||||
|
{
|
||||||
|
if lefthook.exe -h >/dev/null 2>&1
|
||||||
|
then
|
||||||
|
eval lefthook.exe $@
|
||||||
|
elif test -f "$dir/node_modules/@arkweid/lefthook/bin/lefthook.exe"
|
||||||
|
then
|
||||||
|
eval "$dir/node_modules/@arkweid/lefthook/bin/lefthook.exe $@"
|
||||||
|
elif bundle exec lefthook -h >/dev/null 2>&1
|
||||||
|
then
|
||||||
|
bundle exec lefthook $@
|
||||||
|
elif npx @arkweid/lefthook -h >/dev/null 2>&1
|
||||||
|
then
|
||||||
|
npx @arkweid/lefthook $@
|
||||||
|
elif yarn lefthook -h >/dev/null 2>&1
|
||||||
|
then
|
||||||
|
yarn lefthook $@
|
||||||
|
else
|
||||||
|
echo "Can't find lefthook in PATH"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
call_lefthook "run pre-push $@"
|
39
.husky/prepare-commit-msg
Normal file
39
.husky/prepare-commit-msg
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
if [ "$LEFTHOOK" = "0" ]; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -t 1 ] ; then
|
||||||
|
exec < /dev/tty ; # <- enables interactive shell
|
||||||
|
fi
|
||||||
|
|
||||||
|
dir="$(git rev-parse --show-toplevel)"
|
||||||
|
|
||||||
|
call_lefthook()
|
||||||
|
{
|
||||||
|
if lefthook.exe -h >/dev/null 2>&1
|
||||||
|
then
|
||||||
|
eval lefthook.exe $@
|
||||||
|
elif test -f "$dir/node_modules/@arkweid/lefthook/bin/lefthook.exe"
|
||||||
|
then
|
||||||
|
eval "$dir/node_modules/@arkweid/lefthook/bin/lefthook.exe $@"
|
||||||
|
elif bundle exec lefthook -h >/dev/null 2>&1
|
||||||
|
then
|
||||||
|
bundle exec lefthook $@
|
||||||
|
elif npx @arkweid/lefthook -h >/dev/null 2>&1
|
||||||
|
then
|
||||||
|
npx @arkweid/lefthook $@
|
||||||
|
elif yarn lefthook -h >/dev/null 2>&1
|
||||||
|
then
|
||||||
|
yarn lefthook $@
|
||||||
|
else
|
||||||
|
echo "Can't find lefthook in PATH"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
# lefthook_version: 014215c5cbda06062294072352d240a2
|
||||||
|
|
||||||
|
call_lefthook "install"
|
||||||
|
|
||||||
|
call_lefthook "run prepare-commit-msg $@"
|
BIN
dist/index.js.map
generated
vendored
BIN
dist/index.js.map
generated
vendored
Binary file not shown.
Loading…
Reference in New Issue
Block a user