Skip to content

Commit

Permalink
feat: include regex on message flow on commit msg on github
Browse files Browse the repository at this point in the history
  • Loading branch information
lfbarrile01 committed Jan 22, 2025
1 parent 92a2605 commit 6003b11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/commit-labelling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Check Commit Messages for "fix", "feat", "chore", or "release"
run: |
if [[ "$COMMIT_MESSAGE" =~ fix|feat|chore|release ]]; then
if [[ "$COMMIT_MESSAGE" =~ ^(fix|feat|chore|release) ]]; then
if [[ "$COMMIT_MESSAGE" =~ ^fix ]]; then
echo "Commit is a FIX. Proceed with color labeling!"
echo "![Fix Badge](https://img.shields.io/badge/Fix-%23FF5733)"
Expand Down

0 comments on commit 6003b11

Please sign in to comment.