diff --git a/.github/workflows/commit-labelling.yml b/.github/workflows/commit-labelling.yml index 1428841e..3278137a 100644 --- a/.github/workflows/commit-labelling.yml +++ b/.github/workflows/commit-labelling.yml @@ -26,16 +26,16 @@ jobs: - name: Check Commit Messages for "fix", "feat", "chore", or "release" run: | - if [[ "$COMMIT_MESSAGE" =~ ^fix ]]; 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)" - elif [[ "$COMMIT_MESSAGE" =~ ^feat ]]; then + elif [[ "$COMMIT_MESSAGE" =~ ^feat: ]]; then echo "Commit is a FEATURE. Proceed with color labeling!" echo "![Feature Badge](https://img.shields.io/badge/Feature-%234CAF50)" - elif [[ "$COMMIT_MESSAGE" =~ ^chore ]]; then + elif [[ "$COMMIT_MESSAGE" =~ ^chore: ]]; then echo "Commit is a CHORE. Proceed with color labeling!" echo "![Chore Badge](https://img.shields.io/badge/Chore-%23FF9800)" - elif [[ "$COMMIT_MESSAGE" =~ ^release ]]; then + elif [[ "$COMMIT_MESSAGE" =~ ^release: ]]; then echo "Commit is a RELEASE. Proceed with color labeling!" echo "![Release Badge](https://img.shields.io/badge/Release-%237E57C2)" else