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 <