🔧 fix(check): error: Commit message is not conventional

This commit is contained in:
Eshan Roy (Eshanized)
2024-06-16 01:47:25 +05:30
parent 84bfc35844
commit 26153f0f8a

View File

@@ -25,7 +25,7 @@ jobs:
commit_emojis=("build"="🏗️" "chore"="🧹" "ci"="🤖" "docs"="📚" "feat"="🎉" "fix"="🔧" "perf"="⚡️" "refactor"="💡" "revert"="🚨" "style"="💄" "test"="🧪")
for type in "${conventional_types[@]}"; do
if [[ $LATEST_COMMIT_MESSAGE == *"${commit_emojis[$type]} $type:"* ]] || [[ $LATEST_COMMIT_MESSAGE == *"${commit_emojis[$type]} $type("* ]]; then
if echo "$LATEST_COMMIT_MESSAGE" | grep -qE "^${commit_emojis[$type]} ${type}(:|:)"; then
echo "Conventional commit message found: $LATEST_COMMIT_MESSAGE"
exit 0
fi