mirror of
https://github.com/Snigdha-OS/snigdhaos-arctic.git
synced 2025-09-20 19:45:01 +02:00
🔧 fix(check): error: Commit message is not conventional
This commit is contained in:
2
.github/workflows/commit.yml
vendored
2
.github/workflows/commit.yml
vendored
@@ -25,7 +25,7 @@ jobs:
|
|||||||
commit_emojis=("build"="🏗️" "chore"="🧹" "ci"="🤖" "docs"="📚" "feat"="🎉" "fix"="🔧" "perf"="⚡️" "refactor"="💡" "revert"="🚨" "style"="💄" "test"="🧪")
|
commit_emojis=("build"="🏗️" "chore"="🧹" "ci"="🤖" "docs"="📚" "feat"="🎉" "fix"="🔧" "perf"="⚡️" "refactor"="💡" "revert"="🚨" "style"="💄" "test"="🧪")
|
||||||
|
|
||||||
for type in "${conventional_types[@]}"; do
|
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"
|
echo "Conventional commit message found: $LATEST_COMMIT_MESSAGE"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user