diff --git a/.github/workflows/labeler.yaml b/.github/workflows/labeler.yaml index 8c0453c..e090b51 100644 --- a/.github/workflows/labeler.yaml +++ b/.github/workflows/labeler.yaml @@ -15,13 +15,33 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - delete_labels=("bug" "documentation" "duplicate" "enhancement" "good first issue" "help wanted" "invalid" "question" "wontfix") - - for label in "${delete_labels[@]}"; do - if gh label list | grep -q "$label"; then - gh label delete "$label" --yes - fi - done + if gh label list | grep -q "bug"; then + gh label delete "bug" --yes + fi + if gh label list | grep -q "documentation"; then + gh label delete "documentation" --yes + fi + if gh label list | grep -q "duplicate"; then + gh label delete "duplicate" --yes + fi + if gh label list | grep -q "enhancement"; then + gh label delete "enhancement" --yes + fi + if gh label list | grep -q "good first issue"; then + gh label delete "good first issue" --yes + fi + if gh label list | grep -q "help wanted"; then + gh label delete "help wanted" --yes + fi + if gh label list | grep -q "invalid"; then + gh label delete "invalid" --yes + fi + if gh label list | grep -q "question"; then + gh label delete "question" --yes + fi + if gh label list | grep -q "wontfix"; then + gh label delete "wontfix" --yes + fi gh label create "🚨 action" --description "Changes in GitHub workflows or actions" --color "A75AD5" --force gh label create "🤖 bot" --description "Automatically generated pull request" --color "0075CA" --force @@ -29,10 +49,10 @@ jobs: gh label create "📝 changeset" --description "Contains changeset files" --color "304EF9" --force gh label create "🚧 config" --description "Configuration file updates" --color "C0ED4F" --force gh label create "✒️ documentation" --description "Documentation updates, like README changes" --color "66741D" --force - gh label create "🔁 duplicate" --description "This issue or pull request already exists" --color "CFD3D7" --force + gh label create "🔁 duplicate" --description "This issue or pull request already exists" --color "008672" --force gh label create "⏫ enhancement" --description "New feature or request" --color "3C11FD" --force gh label create "🥇 good first issue" --description "Good for newcomers" --color "7057FF" --force - gh label create "🆘 help wanted" --description "Extra attention is needed" --color "008672" --force + gh label create "🆘 help wanted" --description "Extra attention is needed" --color "BFD4F2" --force gh label create "🌏 i18n" --description "Updates to internationalized docs, excluding English" --color "006B75" --force gh label create "👀 invalid" --description "This doesn't seem right" --color "E4E669" --force gh label create "🚀 manifest" --description "Manifest-related changes" --color "96D3D7" --force