Skip to content

Commit

Permalink
ci: add GitHub Workflow to copy labels in Mergify created PRs
Browse files Browse the repository at this point in the history
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: Mergifyio/mergify#5088
Signed-off-by: Niels de Vos <ndevos@ibm.com>
  • Loading branch information
nixpanic committed May 11, 2023
1 parent 3d48978 commit 3a5b2df
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/mergify-copy-labels.yaml
Original file line number Diff line number Diff line change
@@ -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
# with:
# labels: comma,seperated,lists,of,labels,to,copy

0 comments on commit 3a5b2df

Please sign in to comment.