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:
24 runs-on: ubuntu-latest24 runs-on: ubuntu-latest
2525
26 steps:26 steps:
27 # βœ… Auto-Add "πŸ‘ Approved / Nice-to-Have" when specific labels are added27 - name: βœ… Add "πŸ‘ Approved" for relevant labels
28 - name: Add "πŸ‘ Approved / Nice-to-Have" for relevant labels
29 if: contains(fromJSON('["πŸ‘©β€πŸ’» Good First Issue", "πŸ™ Help Wanted", "πŸͺ² Confirmed", "⚠️ High Priority", "❕ Medium Priority", "πŸ’€ Low Priority"]'), github.event.label.name)28 if: contains(fromJSON('["πŸ‘©β€πŸ’» Good First Issue", "πŸ™ Help Wanted", "πŸͺ² Confirmed", "⚠️ High Priority", "❕ Medium Priority", "πŸ’€ Low Priority"]'), github.event.label.name)
30 uses: actions-cool/issues-helper@v329 uses: actions-cool/issues-helper@v3
31 with:30 with:
32 actions: 'add-labels'31 actions: 'add-labels'
33 token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}32 token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
34 labels: 'πŸ‘ Approved / Nice-to-Have'33 labels: 'πŸ‘ Approved'
3534
36 # ❌ Remove "πŸ§‘β€πŸ’» In Progress" when specific labels are added35 - name: ❌ Remove progress labels when PR/issue is marked done or stale
37 - name: Remove "πŸ§‘β€πŸ’» In Progress" when PR is marked done or stale
38 if: contains(fromJSON('["βœ… Done", "βœ… Done (staging)", "⚰️ Stale", "❌ wontfix"]'), github.event.label.name)36 if: contains(fromJSON('["βœ… Done", "βœ… Done (staging)", "⚰️ Stale", "❌ wontfix"]'), github.event.label.name)
39 uses: actions-cool/issues-helper@v337 uses: actions-cool/issues-helper@v3
40 with:38 with:
41 actions: 'remove-labels'39 actions: 'remove-labels'
42 token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}40 token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
43 labels: 'πŸ§‘β€πŸ’» In Progress'41 labels: 'πŸ§‘β€πŸ’» In Progress,πŸ€” Unsure,πŸ€” Under Consideration'
4442
45 # ❌ Remove "πŸ€” Unsure" and "πŸ€” Under Consideration" when "❌ wontfix" is added43 - name: ❌ Remove temporary labels when confirmed labels are added
46 - name: Remove "πŸ€” Unsure" and "πŸ€” Under Consideration" when "❌ wontfix" is added44 if: contains(fromJSON('["❌ wontfix","πŸ‘ Approved","πŸ‘©β€πŸ’» Good First Issue"]'), github.event.label.name)
47 if: github.event.label.name == '❌ wontfix'
48 uses: actions-cool/issues-helper@v345 uses: actions-cool/issues-helper@v3
49 with:46 with:
50 actions: 'remove-labels'47 actions: 'remove-labels'
51 token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}48 token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
52 labels: 'πŸ€” Unsure,πŸ€” Under Consideration'49 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
54 issue-auto-comments:59 issue-auto-comments:
55 name: Post Issue Comments Based on Labels60 name: Post Issue Comments Based on Labels
56 needs: [issue-label-on-content, issue-label-on-labels]61 needs: [issue-label-on-content, issue-label-on-labels]