Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
13434cea
Commit
13434cea
authored
Jul 14, 2015
by
Eric Tune
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #11194 from zmerlynn/louder_release_fork
hack/cherry_pick_pull.sh: Coach user on how to make a pull against non-master
parents
7cbf18ad
4c078b1a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
13 deletions
+19
-13
cherry_pick_pull.sh
hack/cherry_pick_pull.sh
+19
-13
No files found.
hack/cherry_pick_pull.sh
View file @
13434cea
...
@@ -123,18 +123,31 @@ for pull in "${PULLS[@]}"; do
...
@@ -123,18 +123,31 @@ for pull in "${PULLS[@]}"; do
done
done
gitamcleanup
=
false
gitamcleanup
=
false
function
make-a-pr
()
{
echo
"+++ Now you must propose
${
NEWBRANCH
}
as a pull against
${
BRANCH
}
(<--- NOT MASTER)."
echo
" You are constructing a pull against the upstream release branch! To do"
echo
" this in the GitHub UI, when you get to the 'Comparing Changes' screen, keep the"
echo
" 'base fork' as GoogleCloudPlatform/kubernetes, but change the 'base' to e.g. 'release-1.0',"
echo
" presumably
${
BRANCH
}
. (This selection is near the top left.)"
echo
echo
" Use this subject: 'Automated cherry pick of
${
PULLSUBJ
}
' and include a justification."
echo
echo
" Note: the tools actually scrape the branch name you just pushed, so don't worry about"
echo
" the subject too much, but DO keep at least
${
NEWBRANCHREQ
}
in the remote branch name."
echo
}
if
git remote
-v
|
grep
^origin |
grep
GoogleCloudPlatform/kubernetes.git
;
then
if
git remote
-v
|
grep
^origin |
grep
GoogleCloudPlatform/kubernetes.git
;
then
echo
"!!! You have 'origin' configured as your GoogleCloudPlatform/kubernetes.git"
echo
"!!! You have 'origin' configured as your GoogleCloudPlatform/kubernetes.git"
echo
"This isn't normal. Leaving you with push instructions:"
echo
"This isn't normal. Leaving you with push instructions:"
echo
echo
echo
"+++ First manually push the branch this script created:"
echo
echo
" git push REMOTE
${
NEWBRANCHUNIQ
}
:
${
NEWBRANCH
}
"
echo
" git push REMOTE
${
NEWBRANCHUNIQ
}
:
${
NEWBRANCH
}
"
echo
echo
echo
"where REMOTE is your personal fork (maybe 'upstream'? Consider swapping those.)."
echo
"where REMOTE is your personal fork (maybe 'upstream'? Consider swapping those.)."
echo
"Then propose
${
NEWBRANCH
}
as a pull against
${
BRANCH
}
(NOT MASTER)."
echo
echo
"Use this subject: 'Automated cherry pick of
${
PULLSUBJ
}
' and include a justification."
make-a-pr
echo
""
echo
"Note: the tools actually scrape the branch name you just pushed, so don't worry about"
echo
"the subject too much, but DO keep at least
${
NEWBRANCHREQ
}
in the remote branch name."
cleanbranch
=
""
cleanbranch
=
""
exit
0
exit
0
fi
fi
...
@@ -151,11 +164,4 @@ if ! [[ "${REPLY}" =~ ^[yY]$ ]]; then
...
@@ -151,11 +164,4 @@ if ! [[ "${REPLY}" =~ ^[yY]$ ]]; then
fi
fi
git push origin
-f
"
${
NEWBRANCHUNIQ
}
:
${
NEWBRANCH
}
"
git push origin
-f
"
${
NEWBRANCHUNIQ
}
:
${
NEWBRANCH
}
"
make-a-pr
echo
echo
"+++ Now you must propose
${
NEWBRANCH
}
as a pull against
${
BRANCH
}
(NOT MASTER)."
echo
" Use this subject: 'Automated cherry pick of
${
PULLSUBJ
}
' and include a justification."
echo
""
echo
" Note: the tools actually scrape the branch name you just pushed, so don't worry about"
echo
" the subject too much, but DO keep at least
${
NEWBRANCHREQ
}
in the remote branch name."
echo
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment