| 24 | 24 | runs-on: ubuntu-latest |
| 25 | 25 | |
| 26 | 26 | steps: |
| 27 | 27 | #- name: β
Auto-Add "π Approved / Nice-to-Have" whenfor specificrelevant labels are added |
| 28 | | - - name: Add "π Approved / Nice-to-Have" for relevant labels |
| 29 | 28 | if: contains(fromJSON('["π©βπ» Good First Issue", "π Help Wanted", "πͺ² Confirmed", "β οΈ High Priority", "β Medium Priority", "π€ Low Priority"]'), github.event.label.name) |
| 30 | 29 | uses: actions-cool/issues-helper@v3 |
| 31 | 30 | with: |
| 32 | 31 | actions: 'add-labels' |
| 33 | 32 | token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} |
| 34 | 33 | labels: 'π Approved / Nice-to-Have' |
| 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 | 36 | if: contains(fromJSON('["β
Done", "β
Done (staging)", "β°οΈ Stale", "β wontfix"]'), github.event.label.name) |
| 39 | 37 | uses: actions-cool/issues-helper@v3 |
| 40 | 38 | with: |
| 41 | 39 | actions: 'remove-labels' |
| 42 | 40 | token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} |
| 43 | 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 | 45 | uses: actions-cool/issues-helper@v3 |
| 49 | 46 | with: |
| 50 | 47 | actions: 'remove-labels' |
| 51 | 48 | token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} |
| 52 | 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 | 59 | issue-auto-comments: |
| 55 | 60 | name: Post Issue Comments Based on Labels |
| 56 | 61 | needs: [issue-label-on-content, issue-label-on-labels] |