Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: labeler automation added v5 #202

Merged
merged 1 commit into from
Apr 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading