From 72fefd94b50f5b126caee3a35d0cfbfc515c7a64 Mon Sep 17 00:00:00 2001 From: Aleksandr Soloshenko Date: Thu, 27 Nov 2025 20:16:03 +0700 Subject: [PATCH] [actions] add PR labels clenup on update --- .github/workflows/pr-labels.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/pr-labels.yml diff --git a/.github/workflows/pr-labels.yml b/.github/workflows/pr-labels.yml new file mode 100644 index 0000000..04e1c76 --- /dev/null +++ b/.github/workflows/pr-labels.yml @@ -0,0 +1,16 @@ +name: Remove Labels on New Push + +on: + pull_request_target: + types: [opened, synchronize] # Trigger on PR opened or new commits pushed + +jobs: + remove_labels: + runs-on: ubuntu-latest + permissions: + pull-requests: write # Grant permission to modify labels + steps: + - name: Remove specific labels + run: gh pr edit ${{ github.event.pull_request.number }} --remove-label "ready,deployed" + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}