From ae44908f33e983b37314423f66f19532441eca4d Mon Sep 17 00:00:00 2001 From: Chi-Hsuan Huang Date: Wed, 30 Mar 2022 15:41:59 +0800 Subject: [PATCH] Move .husky to root path Add .husky --- .../woocommerce-admin/.husky/pre-push => .husky/post-merge | 2 +- .husky/post-push | 4 ++++ {plugins/woocommerce-admin/.husky => .husky}/pre-commit | 0 {plugins/woocommerce/bin => bin}/post-merge.sh | 0 {plugins/woocommerce/bin => bin}/pre-push.sh | 0 5 files changed, 5 insertions(+), 1 deletion(-) rename plugins/woocommerce-admin/.husky/pre-push => .husky/post-merge (61%) create mode 100755 .husky/post-push rename {plugins/woocommerce-admin/.husky => .husky}/pre-commit (100%) rename {plugins/woocommerce/bin => bin}/post-merge.sh (100%) rename {plugins/woocommerce/bin => bin}/pre-push.sh (100%) diff --git a/plugins/woocommerce-admin/.husky/pre-push b/.husky/post-merge similarity index 61% rename from plugins/woocommerce-admin/.husky/pre-push rename to .husky/post-merge index db541032602..0b5aa72c9d6 100755 --- a/plugins/woocommerce-admin/.husky/pre-push +++ b/.husky/post-merge @@ -1,4 +1,4 @@ #!/bin/sh . "$(dirname "$0")/_/husky.sh" -node bin/pre-push-hook.js +./bin/post-merge.sh diff --git a/.husky/post-push b/.husky/post-push new file mode 100755 index 00000000000..a8877f5c054 --- /dev/null +++ b/.husky/post-push @@ -0,0 +1,4 @@ +#!/bin/sh +. "$(dirname "$0")/_/husky.sh" + +./bin/post-push.sh diff --git a/plugins/woocommerce-admin/.husky/pre-commit b/.husky/pre-commit similarity index 100% rename from plugins/woocommerce-admin/.husky/pre-commit rename to .husky/pre-commit diff --git a/plugins/woocommerce/bin/post-merge.sh b/bin/post-merge.sh similarity index 100% rename from plugins/woocommerce/bin/post-merge.sh rename to bin/post-merge.sh diff --git a/plugins/woocommerce/bin/pre-push.sh b/bin/pre-push.sh similarity index 100% rename from plugins/woocommerce/bin/pre-push.sh rename to bin/pre-push.sh