🔄 synced file(s) with OpenIMSDK/Open-IM-Server

🤖 kubbot to synchronize the warehouse
dev_1
kubbot 2 years ago
parent 74ecb1dbf0
commit 80ee912938
  1. 4
      scripts/githooks/commit-msg
  2. 2
      scripts/githooks/pre-push

@ -17,12 +17,12 @@
# #
# Store this file as .git/hooks/commit-msg in your repository in order to # Store this file as .git/hooks/commit-msg in your repository in order to
# enforce checking for proper commit message format before actual commits. # enforce checking for proper commit message format before actual commits.
# You may need to make the script executable by 'chmod +x .git/hooks/commit-msg'. # You may need to make the scripts executable by 'chmod +x .git/hooks/commit-msg'.
# commit-msg use go-gitlint tool, install go-gitlint via `go get github.com/llorllale/go-gitlint/cmd/go-gitlint` # commit-msg use go-gitlint tool, install go-gitlint via `go get github.com/llorllale/go-gitlint/cmd/go-gitlint`
# go-gitlint --msg-file="$1" # go-gitlint --msg-file="$1"
# An example hook script to check the commit log message. # An example hook scripts to check the commit log message.
# Called by "git commit" with one argument, the name of the file # Called by "git commit" with one argument, the name of the file
# that has the commit message. The hook should exit with non-zero # that has the commit message. The hook should exit with non-zero
# status after issuing an appropriate message if it wants to stop the # status after issuing an appropriate message if it wants to stop the

@ -36,7 +36,7 @@ printError() {
printMessage "Running local OpenIM pre-push hook." printMessage "Running local OpenIM pre-push hook."
if [[ `git status --porcelain` ]]; then if [[ `git status --porcelain` ]]; then
printError "This script needs to run against committed code only. Please commit or stash you changes." printError "This scripts needs to run against committed code only. Please commit or stash you changes."
exit 1 exit 1
fi fi

Loading…
Cancel
Save