Rework auto labels based on labels a bit

e43b9a3d2ce4b637f4a3c0cc8b77e0c8efb673c7

Wolfsblvt <wolfsblvt@gmail.com>

1 files changed, +14 -9Ignore whitespace
.github/workflows/issues-auto-manager.yml+14 -9
@@ -24,33 +24,38 @@ jobs:
2424 runs-on: ubuntu-latest
2525
2626 steps:
2727 #- name: βœ… Auto-Add "πŸ‘ Approved / Nice-to-Have" whenfor specificrelevant labels are added
28- - name: Add "πŸ‘ Approved / Nice-to-Have" for relevant labels
2928 if: contains(fromJSON('["πŸ‘©β€πŸ’» Good First Issue", "πŸ™ Help Wanted", "πŸͺ² Confirmed", "⚠️ High Priority", "❕ Medium Priority", "πŸ’€ Low Priority"]'), github.event.label.name)
3029 uses: actions-cool/issues-helper@v3
3130 with:
3231 actions: 'add-labels'
3332 token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
3433 labels: 'πŸ‘ Approved / Nice-to-Have'
3534
36- # ❌ Remove "πŸ§‘β€πŸ’» In Progress" when specific labels are added
35+ - name: ❌ Remove progress labels when PR/issue is marked done or stale
37- - name: Remove "πŸ§‘β€πŸ’» In Progress" when PR is marked done or stale
3836 if: contains(fromJSON('["βœ… Done", "βœ… Done (staging)", "⚰️ Stale", "❌ wontfix"]'), github.event.label.name)
3937 uses: actions-cool/issues-helper@v3
4038 with:
4139 actions: 'remove-labels'
4240 token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
4341 labels: 'πŸ§‘β€πŸ’» In Progress,πŸ€” Unsure,πŸ€” Under Consideration'
4442
45- # ❌ Remove "πŸ€” Unsure" and "πŸ€” Under Consideration" when "❌ wontfix" is added
43+ - name: ❌ Remove temporary labels when confirmed labels are added
46- - name: Remove "πŸ€” Unsure" and "πŸ€” Under Consideration" when "❌ wontfix" is added
44+ if: contains(fromJSON('["❌ wontfix","πŸ‘ Approved","πŸ‘©β€πŸ’» Good First Issue"]'), github.event.label.name)
47- if: github.event.label.name == '❌ wontfix'
4845 uses: actions-cool/issues-helper@v3
4946 with:
5047 actions: 'remove-labels'
5148 token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
5249 labels: 'πŸ€” Unsure,πŸ€” Under Consideration'
5350
51+ - name: ❌ Remove no bug labels when "πŸͺ² Confirmed" is added
52+ if: github.event.label.name == 'πŸͺ² Confirmed'
53+ uses: actions-cool/issues-helper@v3
54+ with:
55+ actions: 'remove-labels'
56+ token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
57+ labels: 'βœ–οΈ Not Reproducible,βœ–οΈ Not A Bug'
58+
5459 issue-auto-comments:
5560 name: Post Issue Comments Based on Labels
5661 needs: [issue-label-on-content, issue-label-on-labels]