mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 01:40:07 +00:00
Exit if hub isn't installed, add verbiage to message.
This commit is contained in:
parent
b12ef5c397
commit
fccca8fa5d
@ -35,6 +35,7 @@ fi
|
|||||||
|
|
||||||
if ! which hub > /dev/null; then
|
if ! which hub > /dev/null; then
|
||||||
echo "Can't find 'hub' tool in PATH, please install from https://github.com/github/hub"
|
echo "Can't find 'hub' tool in PATH, please install from https://github.com/github/hub"
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$#" -lt 2 ]]; then
|
if [[ "$#" -lt 2 ]]; then
|
||||||
@ -133,9 +134,13 @@ done
|
|||||||
gitamcleanup=false
|
gitamcleanup=false
|
||||||
|
|
||||||
function make-a-pr() {
|
function make-a-pr() {
|
||||||
|
local rel=$(basename ${BRANCH})
|
||||||
echo "+++ Creating a pull request on github"
|
echo "+++ Creating a pull request on github"
|
||||||
echo hub pull-request -m "Automated cherry pick of ${PULLSUBJ}" -h ${GITHUB_USER}:${NEWBRANCH} -b GoogleCloudPlatform:`basename ${BRANCH}`
|
hub pull-request -F- -h "${GITHUB_USER}:${NEWBRANCH}" -b "GoogleCloudPlatform:${rel}" <<EOF
|
||||||
hub pull-request -m "Automated cherry pick of ${PULLSUBJ}" -h ${GITHUB_USER}:${NEWBRANCH} -b GoogleCloudPlatform:`basename ${BRANCH}`
|
Automated cherry pick of ${PULLSUBJ}
|
||||||
|
|
||||||
|
Cherry pick of ${PULLSUBJ} on ${rel}.
|
||||||
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
if git remote -v | grep ^origin | grep GoogleCloudPlatform/kubernetes.git; then
|
if git remote -v | grep ^origin | grep GoogleCloudPlatform/kubernetes.git; then
|
||||||
|
Loading…
Reference in New Issue
Block a user