| 24 | 19 | enable-versioned-regex: 0 |
| 25 | 20 | repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} |
| 26 | 21 | |
| 22 | + issue-label-on-labels: |
| 23 | + name: Auto-Label Issues (Based on Issue Labels) |
| 24 | + runs-on: ubuntu-latest |
| 25 | + |
| 26 | + steps: |
| 27 | + # β
Auto-Add "π Approved / Nice-to-Have" when specific labels are added |
| 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) |
| 30 | + uses: actions-cool/issues-helper@v3 |
| 31 | + with: |
| 32 | + actions: 'add-labels' |
| 33 | + token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} |
| 34 | + labels: 'π Approved / Nice-to-Have' |
| 35 | + |
| 36 | + # β Remove "π§βπ» In Progress" when specific labels are added |
| 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) |
| 39 | + uses: actions-cool/issues-helper@v3 |
| 40 | + with: |
| 41 | + actions: 'remove-labels' |
| 42 | + token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} |
| 43 | + labels: 'π§βπ» In Progress' |
| 44 | + |
| 45 | + # β Remove "π€ Unsure" and "π€ Under Consideration" when "β wontfix" is added |
| 46 | + - name: Remove "π€ Unsure" and "π€ Under Consideration" when "β wontfix" is added |
| 47 | + if: github.event.label.name == 'β wontfix' |
| 48 | + uses: actions-cool/issues-helper@v3 |
| 49 | + with: |
| 50 | + actions: 'remove-labels' |
| 51 | + token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} |
| 52 | + labels: 'π€ Unsure,π€ Under Consideration' |
| 53 | + |
| 54 | + issue-auto-comments: |
| 55 | + name: Post Issue Comments Based on Labels |
| 56 | + needs: [issue-label-on-content, issue-label-on-labels] |
| 57 | + runs-on: ubuntu-latest |
| 58 | + |
| 59 | + steps: |
| 60 | + - name: Checkout Repository |
| 61 | + # Checkout |
| 62 | + # https://github.com/marketplace/actions/checkout |
| 63 | + uses: actions/checkout@v4 |
| 64 | + |
| 27 | 65 | - name: Post Issue Comments Based on Labels |
| 28 | 66 | # Label Commenter |
| 29 | 67 | # https://github.com/marketplace/actions/label-commenter |