Skip to content

Commit

Permalink
feat: labeler automation added v5
Browse files Browse the repository at this point in the history
  • Loading branch information
dakshsinghrathore committed Apr 25, 2024
1 parent 6edfe3a commit e941a35
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,21 @@ jobs:
run: |
# Extract issue title and body
# Custom logic for label classification
if echo "${TITLE}" | grep -iE "bug|error|issue"; then
if echo "${TITLE}" | grep -iE "bug|error|issue|fix"; then
echo "Adding **'bug'** label..."
gh issue edit "${NUMBER}" --add-label "bug"
elif echo "${TITLE}" | grep -iE "chore|maintenance|cleanup"; then
elif echo "${TITLE}" | grep -iE "chore|maintenance|cleanup|refactor"; then
echo "Adding **'chore'** label..."
gh issue edit "${NUMBER}" --add-label "chore"
elif echo "${TITLE}" | grep -iE "documentation|docs"; then
elif echo "${TITLE}" | grep -iE "documentation|docs|typo"; then
echo "Adding **'documentation'** label..."
gh issue edit "${NUMBER}" --add-label "documentation"
elif echo "${TITLE}" | grep -iE "duplicate"; then
elif echo "${TITLE}" | grep -iE "duplicate|identical|matching"; then
echo "Adding **'duplicate'** label..."
gh issue edit "${NUMBER}" --add-label "duplicate"
elif echo "${TITLE}" | grep -iE "enhancement|feature"; then
elif echo "${TITLE}" | grep -iE "enhancement|feature|feat|property|attribute"; then
echo "Adding **'enhancement'** label..."
gh issue edit "${NUMBER}" --add-label "enhancement"
elif echo "${TITLE}" | grep -iE "good first issue"; then
echo "Adding **'good first issue'** label..."
gh issue edit "${NUMBER}" --add-label "good first issue"
elif echo "${TITLE}" | grep -iE "help wanted"; then
echo "Adding **'help wanted'** label..."
gh issue edit "${NUMBER}" --add-label "help wanted"
Expand Down

0 comments on commit e941a35

Please sign in to comment.