From 69a581d68f4bf74d5311234cb5f1b78f3089e2a7 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Wed, 19 Mar 2025 00:51:29 +0100 Subject: [PATCH] GH Actions: auto-remove label on review request Hoping this works as it is difficult to test it, but the intention is to get the workflow to automatically remove the "Status: awaiting feedback" label when a (new) review is requested on a PR. --- .github/workflows/label-remove-outdated.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/label-remove-outdated.yml b/.github/workflows/label-remove-outdated.yml index 6408e3cef1..d1319b2878 100644 --- a/.github/workflows/label-remove-outdated.yml +++ b/.github/workflows/label-remove-outdated.yml @@ -8,6 +8,7 @@ on: pull_request_target: types: - closed + - review_requested jobs: on-issue-close: @@ -27,6 +28,19 @@ jobs: Status: needs investigation Status: triage + on-pr-review-request: + runs-on: ubuntu-latest + if: github.repository_owner == 'PHPCSStandards' && github.event.action == 'review_requested' + + name: "Clean up labels on PR (re-)review request" + + steps: + - uses: mondeja/remove-labels-gh-action@v2 + with: + token: ${{ secrets.GITHUB_TOKEN }} + labels: | + Status: awaiting feedback + on-pr-merge: runs-on: ubuntu-latest if: github.repository_owner == 'PHPCSStandards' && github.event.pull_request.merged == true