From c9ed0caebae6b24b8aa64c5f587d6c11297c7dd9 Mon Sep 17 00:00:00 2001 From: Benoit Tigeot Date: Thu, 16 Jul 2026 00:39:38 +0200 Subject: [PATCH] ci: auto-label PRs targeting dev-v3 (#32340) * 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 * ci: bump actions/labeler to v6.2.0 https://github.com/actions/labeler/releases/tag/v6.2.0 Signed-off-by: Benoit Tigeot * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: Benoit Tigeot Signed-off-by: Benoit Tigeot * ci: reuse existing v3.x label for dev-v3 PRs Avoid creating a new label since v3.x already exists in the repo Signed-off-by: Benoit Tigeot --------- Signed-off-by: Benoit Tigeot Signed-off-by: Benoit Tigeot Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- .github/labeler.yml | 2 ++ .github/workflows/label-pr.yml | 16 ++++++++++++++++ 2 files changed, 18 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..5f854d054 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,2 @@ +"v3.x": + - base-branch: "dev-v3" diff --git a/.github/workflows/label-pr.yml b/.github/workflows/label-pr.yml new file mode 100644 index 000000000..ed1cf4147 --- /dev/null +++ b/.github/workflows/label-pr.yml @@ -0,0 +1,16 @@ +name: Label PRs +on: + pull_request_target: + branches: [dev-v3] + types: [opened, reopened, edited, synchronize] +permissions: {} +jobs: + label: + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@b8dd2d9be0f68b860e7dae5dae7d772984eacd6d # pin@v6.2.0 + with: + sync-labels: true