| 1 | | -# When a new comment is added to an issue, if it had the Stale or Awaiting User Response labels, then those labels will be removed |
| 2 | | - |
| 3 | | -name: 🎯 Add/ Remove Awaiting Response Labels |
| 4 | | -on: |
| 5 | | - issue_comment: |
| 6 | | - types: [created] |
| 7 | | -jobs: |
| 8 | | - remove-stale: |
| 9 | | - runs-on: ubuntu-latest |
| 10 | | - if: ${{ github.event.comment.author_association != 'COLLABORATOR' && github.event.comment.author_association != 'OWNER' }} |
| 11 | | - steps: |
| 12 | | - - name: Remove Stale labels when Updated |
| 13 | | - uses: actions-cool/issues-helper@v2 |
| 14 | | - with: |
| 15 | | - actions: remove-labels |
| 16 | | - token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} |
| 17 | | - issue-number: ${{ github.event.issue.number }} |
| 18 | | - labels: '🚏 Awaiting User Response,⚰️ Stale' |
| 19 | | - |
| 20 | | - add-awaiting-author: |
| 21 | | - runs-on: ubuntu-latest |
| 22 | | - if: ${{!github.event.issue.pull_request && github.event.comment.author_association != 'COLLABORATOR' && github.event.comment.author_association != 'OWNER' && github.event.issue.state == 'open' }} |
| 23 | | - steps: |
| 24 | | - - name: Add Awaiting Author labels when Updated |
| 25 | | - uses: actions-cool/issues-helper@v2 |
| 26 | | - with: |
| 27 | | - actions: add-labels |
| 28 | | - token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} |
| 29 | | - issue-number: ${{ github.event.issue.number }} |
| 30 | | - labels: '👤 Awaiting Maintainer Response' |
| 31 | | - |
| 32 | | - remove-awaiting-author: |
| 33 | | - runs-on: ubuntu-latest |
| 34 | | - if: ${{ github.event.comment.author_association == 'OWNER' }} |
| 35 | | - steps: |
| 36 | | - - name: Remove Awaiting Author labels when Updated |
| 37 | | - uses: actions-cool/issues-helper@v2 |
| 38 | | - with: |
| 39 | | - actions: remove-labels |
| 40 | | - token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} |
| 41 | | - issue-number: ${{ github.event.issue.number }} |
| 42 | | - labels: '👤 Awaiting Maintainer Response' |
| 42 | |
\ No newline at end of file |