From e5ed1f3965a0887ab10f59569f1f0f4edcc1fc34 Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Fri, 10 Jan 2025 11:43:34 +0100 Subject: [PATCH] github-actions: copy gh labels to the mergify backports (#6503) (cherry picked from commit 37c08c39d2533b560a5d30c1711002a24dc1c665) --- .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 0000000000..d5ff3ed0e4 --- /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-*"