mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-09-29 19:25:49 +00:00
Copy kind/changelog-not-required label to backport PRs
Co-authored-by: kaovilai <11228024+kaovilai@users.noreply.github.com>
This commit is contained in:
co-authored by
kaovilai
parent
b8379683be
commit
4586f1d012
@@ -66,6 +66,9 @@ branches.
|
||||
PR's `changelogs/unreleased/<source_pr>-<user>` file. The workflow
|
||||
automatically renames it to `<backport_pr>-<user>` on the backport branch so
|
||||
`hack/changelog-check.sh` passes and release notes cite the correct PR.
|
||||
- **Changelog-not-required:** if the source PR is labeled
|
||||
`kind/changelog-not-required`, that label is copied to the backport PR so
|
||||
it isn't flagged as missing a changelog.
|
||||
- Only repository **owners, members, and collaborators** may trigger these commands.
|
||||
|
||||
## General coding guidelines
|
||||
|
||||
@@ -27,6 +27,10 @@ name: Backport merged pull request
|
||||
# file is automatically renamed to <backport_pr>-<user> so that
|
||||
# hack/changelog-check.sh passes and release notes cite the correct PR.
|
||||
#
|
||||
# If the source PR is labeled `kind/changelog-not-required` (i.e. it has no
|
||||
# changelog file), that label is copied to the backport PR so it isn't
|
||||
# flagged as missing a changelog either.
|
||||
#
|
||||
# See: https://github.com/velero-io/velero/issues/9603
|
||||
|
||||
on:
|
||||
@@ -178,6 +182,9 @@ jobs:
|
||||
with:
|
||||
# Labels like `backport release-1.17` select the target branch.
|
||||
label_pattern: '^backport ([^ ]+)$'
|
||||
# Carry over `kind/changelog-not-required` from the source PR so
|
||||
# backport PRs of changelog-exempt changes aren't flagged as missing one.
|
||||
copy_labels_pattern: '^kind/changelog-not-required$'
|
||||
# Prefer draft PRs with conflict markers over failing the job silently.
|
||||
experimental: |
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user