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