From c37ac53cbb07db1b447e68c0cefa3f74e269c3af Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Thu, 11 May 2023 10:27:57 +0200 Subject: [PATCH] ci: add GitHub Workflow to copy labels in Mergify created PRs When Mergify creates a PR, the `ok-to-test` label needs to be added before CI runs. Not all PRs need complete testing, and they may have some `ci/skip/..` labels too. With this new GitHub Workflow, the labels get copied from the original PR into the newly created PR. See-also: https://github.com/Mergifyio/mergify/discussions/5088 Signed-off-by: Niels de Vos --- .github/workflows/mergify-copy-labels.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/mergify-copy-labels.yaml diff --git a/.github/workflows/mergify-copy-labels.yaml b/.github/workflows/mergify-copy-labels.yaml new file mode 100644 index 000000000..39d2fbfe9 --- /dev/null +++ b/.github/workflows/mergify-copy-labels.yaml @@ -0,0 +1,16 @@ +--- +name: Mergify merge-queue labels copier +# yamllint disable-line rule:truthy +on: + pull_request_target: + types: + - opened + +jobs: + mergify-merge-queue-labels-copier: + runs-on: ubuntu-latest + steps: + - name: Copying labels + uses: Mergifyio/gha-mergify-merge-queue-labels-copier@main +# with: +# labels: comma,separated,lists,of,labels,to,copy