| 24 | runs-on: ubuntu-latest | 24 | runs-on: ubuntu-latest |
| 25 | | 25 | |
| 26 | steps: | 26 | steps: |
| 27 | # β
Auto-Add "π Approved / Nice-to-Have" when specific labels are added | 27 | - 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@v3 | 29 | 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' |
| 35 | | 34 | |
| 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 | | |
| 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@v3 | 37 | 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' |
| 44 | | 42 | |
| 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' | | |
| 48 | uses: actions-cool/issues-helper@v3 | 45 | 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' |
| 53 | | 50 | |
| | 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 Labels | 60 | 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] |