From 3ac5b77351ece074d1ff232db5ba29a563b5fae1 Mon Sep 17 00:00:00 2001 From: Sachin Sahu Date: Fri, 31 May 2024 19:07:10 +0530 Subject: [PATCH] Remove redundant labels Signed-off-by: Sachin Sahu --- .github/pull-request-template.md | 2 +- .github/workflows/pr-auto-label.yml | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/pull-request-template.md b/.github/pull-request-template.md index d3ab271..fc5d26f 100644 --- a/.github/pull-request-template.md +++ b/.github/pull-request-template.md @@ -1,5 +1,5 @@ ### Describe your PR diff --git a/.github/workflows/pr-auto-label.yml b/.github/workflows/pr-auto-label.yml index 6d80b95..25e8804 100644 --- a/.github/workflows/pr-auto-label.yml +++ b/.github/workflows/pr-auto-label.yml @@ -12,8 +12,22 @@ permissions: checks: write # to generate status jobs: + remove-old-labels: + name: Remove old PR labels + runs-on: ubuntu-latest + steps: + - uses: mondeja/remove-labels-gh-action@v2.0.0 + with: + token: ${{ secrets.GITHUB_TOKEN }} + labels: | + kind/BUGFIX + kind/ENHANCEMENT + kind/FEATURE + kind/CHANGE + release-note-none pr-labeler: runs-on: ubuntu-latest + needs: remove-old-labels steps: - name: Check Labels id: labeler