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 <ndevos@ibm.com>
This commit is contained in:
Niels de Vos 2023-05-11 10:27:57 +02:00 committed by mergify[bot]
parent 9b6795c6d6
commit c37ac53cbb

View File

@ -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