From 9d2e74d43d7e472a6bb982331cc4851686d96fc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Gronowski?= Date: Mon, 8 Sep 2025 21:39:43 +0200 Subject: [PATCH] gha: Add automatic PR labeling for modules MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sets up the labeler workflow to automatically label PRs affecting the `client` and `api` modules. This allows to distinguish PRs targetting different modules. TODO: Figure out how to handle PRs that would end up with both labels. However, I think it's good to see what PRs would that affect. Signed-off-by: Paweł Gronowski --- .github/labeler.yml | 8 ++++++++ .github/workflows/labeler.yml | 18 ++++++++++++++++++ 2 files changed, 26 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..e73c9ffd96 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,8 @@ +module/client: + - changed-files: + - any-glob-to-any-file: 'client/**' + +module/api: + - changed-files: + - any-glob-to-any-file: 'api/**' + diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 0000000000..1d2cb26d53 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,18 @@ +name: "Labeler" +on: + pull_request_target: + +permissions: + contents: read + +jobs: + labeler: + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: + - name: Labels + uses: actions/labeler@v6 + with: + sync-labels: true