Skip to content

Commit

Permalink
baaaaad commit
Browse files Browse the repository at this point in the history
  • Loading branch information
joc-a committed Feb 5, 2025
1 parent a642aed commit 2903bdb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/commit-message-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ jobs:
# Ensure UTF-8 encoding
export LANG=en_US.UTF-8
echo -e "✅ Good commit message"
echo -e "❌ Bad commit message"
# Regex for Conventional Commits specification
COMMIT_REGEX="^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\([^\)]*\))?:\s?(EXPOSED-[0-9]+\s?)?.+$"
Expand All @@ -48,10 +51,10 @@ jobs:
# Check if commit message matches the regex
if [[ ! "$COMMIT_MSG" =~ $COMMIT_REGEX ]]; then
INVALID_COMMITS+=("$COMMIT_MSG")
echo "❌ $COMMIT_MSG"
echo -e "❌ $COMMIT_MSG"
else
VALID_COMMITS+=("$COMMIT_MSG")
echo "✅ $COMMIT_MSG"
echo -e "✅ $COMMIT_MSG"
fi
done
Expand Down

0 comments on commit 2903bdb

Please sign in to comment.