From 91c9a86af7518250eabc375b4de255b79583ea85 Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Fri, 27 Oct 2023 06:53:30 +0200 Subject: [PATCH] Add Pull Request Labeler action --- .github/labeler.yml | 5 +++++ .github/workflows/labeler.yml | 13 +++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/labeler.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 00000000..6712e91a --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,5 @@ +feature: +- head-branch: ['^feature', 'feature'] + +bugfix: +- head-branch: ['^bugfix', 'bugfix'] diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 00000000..50b7f536 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,13 @@ +name: "Pull Request Labeler" + +on: +- pull_request_target + +jobs: + triage: + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v5.0.0-beta.1