From 0de297b56d181197dd411f095986a7d1b55567de Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Sun, 3 Oct 2021 21:37:32 +0100 Subject: [PATCH] :truck: Renamed and refactored the auto pending label action --- .../workflows/manage-pending-labels-closed.yml | 17 +++++++++++++++++ ...tale-label.yml => manage-pending-labels.yml} | 0 2 files changed, 17 insertions(+) create mode 100644 .github/workflows/manage-pending-labels-closed.yml rename .github/workflows/{remove-stale-label.yml => manage-pending-labels.yml} (100%) diff --git a/.github/workflows/manage-pending-labels-closed.yml b/.github/workflows/manage-pending-labels-closed.yml new file mode 100644 index 00000000..fa19038b --- /dev/null +++ b/.github/workflows/manage-pending-labels-closed.yml @@ -0,0 +1,17 @@ +# 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. +name: 🎯 Remove Pending Labels on Close +on: + issues: + types: [closed] +jobs: + remove-labels: + runs-on: ubuntu-latest + steps: + - name: Remove Labels when Closed + uses: actions-cool/issues-helper@v2 + with: + actions: remove-labels + token: ${{ secrets.BOT_GITHUB_TOKEN }} + issue-number: ${{ github.event.issue.number }} + labels: '🚏 Awaiting User Response,⚰️ Stale,👤 Awaiting Maintainer Response' diff --git a/.github/workflows/remove-stale-label.yml b/.github/workflows/manage-pending-labels.yml similarity index 100% rename from .github/workflows/remove-stale-label.yml rename to .github/workflows/manage-pending-labels.yml