Skip to content

Commit 776525f

Browse files
committed
Add parent PR title to cherry-picked PR title
1 parent 45db5e7 commit 776525f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: hack/cherry_pick_pull.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,13 @@ function make-a-pr() {
131131
# when we shove the heredoc at hub directly, tickling the ioctl
132132
# crash.
133133
prtext="$(mktemp -t prtext.XXXX)" # cleaned in return_to_kansas
134+
local numandtitle=$(printf '%s\n' "${SUBJECTS[@]}")
134135
cat >"${prtext}" <<EOF
135-
Automated cherry pick of ${PULLSUBJ}
136+
Automated cherry pick of ${numandtitle}
136137
137138
Cherry pick of ${PULLSUBJ} on ${rel}.
138139
139-
$(printf '%s\n' "${SUBJECTS[@]}")
140+
${numandtitle}
140141
EOF
141142

142143
hub pull-request -F "${prtext}" -h "${GITHUB_USER}:${NEWBRANCH}" -b "kubernetes:${rel}"

0 commit comments

Comments
 (0)