From ce8f1e16add1ddc6f4a66602e91fe4da7ae310c9 Mon Sep 17 00:00:00 2001 From: ibotdotout Date: Sun, 16 Oct 2022 15:58:55 +0700 Subject: [PATCH] docs: update docs and git hook pre-commit Signed-off-by: ibotdotout --- docs/running-locally.md | 1 + hack/git/hooks/pre-commit | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/running-locally.md b/docs/running-locally.md index c2f2fb9fd4b6..6b796d4ac699 100644 --- a/docs/running-locally.md +++ b/docs/running-locally.md @@ -199,6 +199,7 @@ Before you commit code and raise a PR, always run: ```bash make pre-commit -B +SKIP_PRIVATE_REPO=true make test ``` Please do the following when creating your PR: diff --git a/hack/git/hooks/pre-commit b/hack/git/hooks/pre-commit index 2853f3e4caf9..3166e8137ac2 100755 --- a/hack/git/hooks/pre-commit +++ b/hack/git/hooks/pre-commit @@ -10,7 +10,7 @@ else fi if find dist/test -mmin -${m} | grep .; then - echo "✅ \`make test\` was run in the last ${m}m" + echo "✅ \`SKIP_PRIVATE_REPO=true make test\` was run in the last ${m}m" else - echo "⚠️️ \`make test\` has not been run for over ${m}m" -fi \ No newline at end of file + echo "⚠️️ \`SKIP_PRIVATE_REPO=true make test\` has not been run for over ${m}m" +fi