From adaea77cb15c6180f0cdcc1e6c11c15938ae06da Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Thu, 9 Jan 2025 15:46:54 +0100 Subject: [PATCH] github-actions: support for copying the backport labels (#15190) --- .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-*"