fix: commitlint fixed

This commit is contained in:
2025-11-28 12:21:55 +01:00
parent 1cdccaeb29
commit 43bb503253
5 changed files with 46 additions and 24 deletions

View File

@@ -1,9 +1,9 @@
#!/bin/sh
echo -e "\e[35m➤ [COMMIT]\e[0m Checking message\e[37m - \e[33m$(date +"%H:%M:%S")\e[0m"
deno task --eval 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
# fi
deno run -A npm:commitlint -g "./.commitlintrc.json" --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
fi
echo -e "\e[32m➤ [COMMIT]\e[0m Message ok\e[37m - \e[33m$(date +"%H:%M:%S")\e[0m"