From 6ea8a85b3cb0f5f7131f79e6805c08304ef95d20 Mon Sep 17 00:00:00 2001 From: Moritz Date: Mon, 14 Oct 2024 13:39:11 +0200 Subject: [PATCH] Add label workflow --- .github/workflows/pull_request_label.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/pull_request_label.yaml diff --git a/.github/workflows/pull_request_label.yaml b/.github/workflows/pull_request_label.yaml new file mode 100644 index 00000000..54e3df53 --- /dev/null +++ b/.github/workflows/pull_request_label.yaml @@ -0,0 +1,22 @@ +# This workflow applies labels to pull requests based on the paths that are +# modified in the pull request. +# +# Edit `.github/labeler.yml` to configure labels. For more information, see +# https://github.com/actions/labeler. + +name: Pull Request Labeler +permissions: read-all + +on: + pull_request_target + +jobs: + label: + permissions: + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" + sync-labels: true