From 59f4e506d676c73febf7ecda77b7d1a50d8f6940 Mon Sep 17 00:00:00 2001 From: Benoit Tigeot Date: Mon, 13 Jul 2026 09:09:48 +0200 Subject: [PATCH] ci: auto-label PRs targeting dev-v3 Use actions/labeler to apply a "dev-v3" label on PRs opened against the `dev-v3` branch. Signed-off-by: Benoit Tigeot --- .github/labeler.yml | 2 ++ .github/workflows/label-pr.yml | 15 +++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/label-pr.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 000000000..35f388bd3 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,2 @@ +"dev-v3": + - base-branch: "dev-v3" diff --git a/.github/workflows/label-pr.yml b/.github/workflows/label-pr.yml new file mode 100644 index 000000000..7cd12d3fd --- /dev/null +++ b/.github/workflows/label-pr.yml @@ -0,0 +1,15 @@ +name: Label PRs +on: + pull_request_target: + types: [opened] +permissions: {} +jobs: + label: + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # pin@v5.0.0 + with: + sync-labels: true