From ba6328d5c12f01fe46c355179d4a87dcf8d65180 Mon Sep 17 00:00:00 2001 From: Jess Frazelle Date: Tue, 4 Oct 2016 13:45:22 -0700 Subject: [PATCH] hack: Update cherry-pick script to include original PR subject Signed-off-by: Jess Frazelle --- hack/cherry_pick_pull.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hack/cherry_pick_pull.sh b/hack/cherry_pick_pull.sh index c086039ff0..9c809fdab3 100755 --- a/hack/cherry_pick_pull.sh +++ b/hack/cherry_pick_pull.sh @@ -111,6 +111,7 @@ function return_to_kansas { } trap return_to_kansas EXIT +SUBJECTS=() function make-a-pr() { local rel="$(basename "${BRANCH}")" echo @@ -125,6 +126,8 @@ function make-a-pr() { Automated cherry pick of ${PULLSUBJ} Cherry pick of ${PULLSUBJ} on ${rel}. + +$(printf '%s\n' "${SUBJECTS[@]}") EOF hub pull-request -F "${prtext}" -h "${GITHUB_USER}:${NEWBRANCH}" -b "kubernetes:${rel}" @@ -165,6 +168,9 @@ for pull in "${PULLS[@]}"; do exit 1 fi } + # set the subject + subject=$(grep "^Subject" "/tmp/${pull}.patch" | sed -e 's/Subject: \[PATCH\] //g') + SUBJECTS+=("#${pull}: ${subject}") done gitamcleanup=false