From d783cf01d1f455b90793a7b64fa61d48e7825ca8 Mon Sep 17 00:00:00 2001 From: Maxim Schuwalow Date: Sun, 14 Jan 2024 18:06:13 +0100 Subject: [PATCH] adjust labeler --- .github/labeler.yml | 4 ++-- .github/workflows/pr-labeler.yml | 12 ++++-------- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 4e9f8ee..a648086 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,6 +1,6 @@ version: 1 labels: - label: "automerge" - author: "(scala-steward|renovate\\[bot\\])" + authors: ["scala-steward", "app/renovate"] - label: "auto-approve" - author: "(scala-steward|renovate\\[bot\\])" + authors: ["scala-steward", "app/renovate"] diff --git a/.github/workflows/pr-labeler.yml b/.github/workflows/pr-labeler.yml index e76e485..3de42d1 100644 --- a/.github/workflows/pr-labeler.yml +++ b/.github/workflows/pr-labeler.yml @@ -1,10 +1,7 @@ name: Label PR on: - pull_request_target: - types: - - reopened - - opened + pull_request_target: {} jobs: pr-labeler: @@ -13,7 +10,6 @@ jobs: contents: read pull-requests: write steps: - - uses: TimonVS/pr-labeler-action@v4 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - configuration-path: .github/pr-labeler.yml + - uses: srvaroa/labeler@v1 + env: + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"