mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-18 11:00:25 +00:00
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:
parent
9b6795c6d6
commit
c37ac53cbb
16
.github/workflows/mergify-copy-labels.yaml
vendored
Normal file
16
.github/workflows/mergify-copy-labels.yaml
vendored
Normal 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
|
Loading…
Reference in New Issue
Block a user