Skip to content

Commit

Permalink
🔄 synced file(s) with OpenIMSDK/Open-IM-Server
Browse files Browse the repository at this point in the history
🤖 kubbot to synchronize the warehouse
  • Loading branch information
kubbot committed Jul 4, 2023
1 parent 8ff9824 commit b514e7d
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions scripts/githooks/commit-msg
Original file line number Diff line number Diff line change
Expand Up @@ -74,18 +74,4 @@ then
printError "Please fix your commit message to match kubecub coding standards"
printError "https://gist.github.com/cubxxw/126b72104ac0b0ca484c9db09c3e5694#file-githook-md"
exit 1
fi

### Add Sign-off-by line to the end of the commit message
# Get local git config
NAME=$(git config user.name)
EMAIL=$(git config user.email)

# Check if the commit message contains a sign-off line
grep -qs "^Signed-off-by: " "$1"
SIGNED_OFF_BY_EXISTS=$?

# Add "Signed-off-by" line if it doesn't exist
if [ $SIGNED_OFF_BY_EXISTS -ne 0 ]; then
echo -e "\nSigned-off-by: $NAME <$EMAIL>" >> "$1"
fi

0 comments on commit b514e7d

Please sign in to comment.