feat: commit-msg minor requirements

This commit is contained in:
2024-11-03 18:43:11 +01:00
parent 3cc9799bdc
commit ed3e59e079
2 changed files with 25 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
#!/bin/sh
echo -e "\e[35m➤ [COMMIT]\e[0m Checking message\e[37m - \e[33m$(date +"%H:%M:%S")\e[0m"
# npx commitlint --edit $1
npx commitlint --edit $1
if [[ $? != 0 ]]; then
echo -e "\e[31m➤ [COMMIT]\e[0m Wrong format on message\e[37m - \e[33m$(date +"%H:%M:%S")\e[0m"
exit -1