2021-09-28 20:22:46 +03:00
|
|
|
# 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, providing it was not user lissy93 who added the commend.
|
2021-10-01 22:56:16 +03:00
|
|
|
name: 🎯 Add/ Remove Awaiting Response Labels
|
2021-09-28 20:22:46 +03:00
|
|
|
on:
|
|
|
|
issue_comment:
|
|
|
|
types: [created]
|
|
|
|
jobs:
|
|
|
|
remove-stale:
|
|
|
|
runs-on: ubuntu-latest
|
2021-10-02 23:21:38 +03:00
|
|
|
if: ${{ github.event.comment.author_association != 'COLLABORATOR' && github.event.comment.author_association != 'OWNER' }}
|
2021-09-28 20:22:46 +03:00
|
|
|
steps:
|
|
|
|
- name: Remove Stale labels when Updated
|
|
|
|
uses: actions-cool/issues-helper@v2
|
|
|
|
with:
|
|
|
|
actions: remove-labels
|
2021-11-10 21:37:14 +03:00
|
|
|
token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
2021-09-28 20:22:46 +03:00
|
|
|
issue-number: ${{ github.event.issue.number }}
|
|
|
|
labels: '🚏 Awaiting User Response,⚰️ Stale'
|
2021-10-01 22:56:16 +03:00
|
|
|
|
|
|
|
add-awaiting-author:
|
|
|
|
runs-on: ubuntu-latest
|
2021-12-12 02:10:19 +03:00
|
|
|
if: ${{!github.event.issue.pull_request && github.event.comment.author_association != 'COLLABORATOR' && github.event.comment.author_association != 'OWNER' && github.event.issue.state === 'open' }}
|
2021-10-01 22:56:16 +03:00
|
|
|
steps:
|
|
|
|
- name: Add Awaiting Author labels when Updated
|
|
|
|
uses: actions-cool/issues-helper@v2
|
|
|
|
with:
|
|
|
|
actions: add-labels
|
2021-11-10 21:37:14 +03:00
|
|
|
token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
2021-10-01 22:56:16 +03:00
|
|
|
issue-number: ${{ github.event.issue.number }}
|
|
|
|
labels: '👤 Awaiting Maintainer Response'
|
|
|
|
|
|
|
|
remove-awaiting-author:
|
|
|
|
runs-on: ubuntu-latest
|
2021-10-02 23:18:00 +03:00
|
|
|
if: ${{ github.event.comment.author_association == 'OWNER' }}
|
2021-10-01 22:56:16 +03:00
|
|
|
steps:
|
|
|
|
- name: Remove Awaiting Author labels when Updated
|
|
|
|
uses: actions-cool/issues-helper@v2
|
|
|
|
with:
|
|
|
|
actions: remove-labels
|
2021-11-10 21:37:14 +03:00
|
|
|
token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
2021-10-01 22:56:16 +03:00
|
|
|
issue-number: ${{ github.event.issue.number }}
|
|
|
|
labels: '👤 Awaiting Maintainer Response'
|