From 11c0715770b5afce79712b2bfe21a6a915d9708a Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Thu, 28 Aug 2025 19:25:05 +0200 Subject: [PATCH] gh action: add PR labeler This action should automatically label any PR with common, image or storage based on the files changed. This should help reviewers focus on their specific areas of interest. Signed-off-by: Paul Holzinger --- .github/labeler.yml | 11 +++++++++++ .github/workflows/labeler.yml | 13 +++++++++++++ 2 files changed, 24 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 0000000000..c7e45b0ff4 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,11 @@ +# Add labels based on file paths in PR +# https://github.com/actions/labeler +common: + - changed-files: + - any-glob-to-any-file: common/** +image: + - changed-files: + - any-glob-to-any-file: image/** +storage: + - changed-files: + - any-glob-to-any-file: storage/** diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 0000000000..722e54118d --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,13 @@ +# https://github.com/actions/labeler +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