Skip to content

Commit

Permalink
feat: set the commit label
Browse files Browse the repository at this point in the history
  • Loading branch information
lfbarrile01 committed Jan 22, 2025
1 parent d251ddb commit 2bfdb21
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,13 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Get Commit Message
id: commit_message
run: |
COMMIT_MESSAGE="${{ github.event.head_commit.message }}"
- name: Check Commit Messages for "fix", "feat", "chore", or "release"
run: |
COMMIT_MESSAGE=$(git log -1 --pretty=%B)

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 2bfdb21

Please sign in to comment.