mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-15 22:20:51 +00:00
hack: Update cherry-pick script to include original PR subject
Signed-off-by: Jess Frazelle <acidburn@google.com>
This commit is contained in:
@@ -111,6 +111,7 @@ function return_to_kansas {
|
|||||||
}
|
}
|
||||||
trap return_to_kansas EXIT
|
trap return_to_kansas EXIT
|
||||||
|
|
||||||
|
SUBJECTS=()
|
||||||
function make-a-pr() {
|
function make-a-pr() {
|
||||||
local rel="$(basename "${BRANCH}")"
|
local rel="$(basename "${BRANCH}")"
|
||||||
echo
|
echo
|
||||||
@@ -125,6 +126,8 @@ function make-a-pr() {
|
|||||||
Automated cherry pick of ${PULLSUBJ}
|
Automated cherry pick of ${PULLSUBJ}
|
||||||
|
|
||||||
Cherry pick of ${PULLSUBJ} on ${rel}.
|
Cherry pick of ${PULLSUBJ} on ${rel}.
|
||||||
|
|
||||||
|
$(printf '%s\n' "${SUBJECTS[@]}")
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
hub pull-request -F "${prtext}" -h "${GITHUB_USER}:${NEWBRANCH}" -b "kubernetes:${rel}"
|
hub pull-request -F "${prtext}" -h "${GITHUB_USER}:${NEWBRANCH}" -b "kubernetes:${rel}"
|
||||||
@@ -165,6 +168,9 @@ for pull in "${PULLS[@]}"; do
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
# set the subject
|
||||||
|
subject=$(grep "^Subject" "/tmp/${pull}.patch" | sed -e 's/Subject: \[PATCH\] //g')
|
||||||
|
SUBJECTS+=("#${pull}: ${subject}")
|
||||||
done
|
done
|
||||||
gitamcleanup=false
|
gitamcleanup=false
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user