From 62a335cd32ed540bbb9dc2f2aa449d0b30c63b76 Mon Sep 17 00:00:00 2001 From: andreaangiolillo Date: Fri, 17 Nov 2023 13:58:13 +0000 Subject: [PATCH] fix: fix PR labeler --- .github/pr-labeler.yml | 14 +++++++++++--- .github/workflows/pull-request-lint.yml | 7 ++++--- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/.github/pr-labeler.yml b/.github/pr-labeler.yml index ec9a24dd09..b319f71c2f 100644 --- a/.github/pr-labeler.yml +++ b/.github/pr-labeler.yml @@ -1,3 +1,11 @@ -enhancement: ['feature:*', 'feat:*'] -bug: ['fix:*'] -breaking-change: ['*!*'] +version: 1 +labels: + - label: "enhancement" + title: "feat:*" + - label: "enhancement" + title: "feature:*" + - label: "bug" + title: "fix:*" + - label: "breaking-change" + title: "*!*" + diff --git a/.github/workflows/pull-request-lint.yml b/.github/workflows/pull-request-lint.yml index 102c553a83..cb94bea7f3 100644 --- a/.github/workflows/pull-request-lint.yml +++ b/.github/workflows/pull-request-lint.yml @@ -65,7 +65,8 @@ jobs: contents: read pull-requests: write steps: - - uses: TimonVS/pr-labeler-action@v4 + - uses: srvaroa/labeler@1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - configuration-path: .github/pr-labeler.yml + config_path: .github/pr-labeler.yml