From 66b99ed0e5fcc7b0c21eae6771b5e62fe66d9799 Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Thu, 9 Jan 2025 16:06:26 +0100 Subject: [PATCH] github-actions: support for copying the backport labels (#42266) (cherry picked from commit 3f1bc1e5e7c6c439b2e397a1806ba375eff552a5) --- .github/workflows/mergify-labels-copier.yml | 23 +++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/mergify-labels-copier.yml diff --git a/.github/workflows/mergify-labels-copier.yml b/.github/workflows/mergify-labels-copier.yml new file mode 100644 index 00000000000..d5ff3ed0e48 --- /dev/null +++ b/.github/workflows/mergify-labels-copier.yml @@ -0,0 +1,23 @@ +name: mergify backport labels copier + +on: + pull_request: + types: + - opened + +permissions: + contents: read + +jobs: + mergify-backport-labels-copier: + runs-on: ubuntu-latest + if: startsWith(github.head_ref, 'mergify/bp/') + permissions: + # Add GH labels + pull-requests: write + # See https://github.com/cli/cli/issues/6274 + repository-projects: read + steps: + - uses: elastic/oblt-actions/mergify/labels-copier@v1 + with: + excluded-labels-regex: "^backport-*"