From 70165283df699cbc4193bfc86b3d584ffa65a7f3 Mon Sep 17 00:00:00 2001 From: vladikkuzn Date: Mon, 16 Feb 2026 16:41:12 +0200 Subject: [PATCH] Automate adding kind/* labels to cherry-pick PRs --- hack/cherry_pick_pull.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/hack/cherry_pick_pull.sh b/hack/cherry_pick_pull.sh index a6f3529dd34..f13a1705501 100755 --- a/hack/cherry_pick_pull.sh +++ b/hack/cherry_pick_pull.sh @@ -134,6 +134,7 @@ trap return_to_kansas EXIT SUBJECTS=() RELEASE_NOTES=() +KIND_LABELS=() function make-a-pr() { local rel rel="$(basename "${BRANCH}")" @@ -142,6 +143,16 @@ function make-a-pr() { local numandtitle numandtitle=$(printf '%s\n' "${SUBJECTS[@]}") + + local kind_commands="" + if [[ ${#KIND_LABELS[@]} -gt 0 ]]; then + while IFS= read -r label; do + if [[ -n "${label}" ]]; then + kind_commands+="/kind ${label#kind/}"$'\n' + fi + done < <(printf '%s\n' "${KIND_LABELS[@]}" | sort -u) + fi + prtext=$(cat <