mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #8946 from gyuho/cherry-pick
hack/patch: fix some typos in README, make cherrypick.sh executable
This commit is contained in:
commit
b041ce5d51
@ -1,4 +1,4 @@
|
||||
# hack/cherrypick.sh
|
||||
# ./hack/patch/cherrypick.sh
|
||||
|
||||
Handles cherry-picks of PR(s) from etcd master to a stable etcd release branch automatically.
|
||||
|
||||
@ -15,22 +15,23 @@ one on github.com and register it locally with `git remote add ...`.
|
||||
```
|
||||
export UPSTREAM_REMOTE=origin
|
||||
export FORK_REMOTE=${github-username}
|
||||
export GITHUB_USER=${github-username}
|
||||
```
|
||||
|
||||
Next, install hub from https://github.com/github/hub
|
||||
|
||||
## Usage
|
||||
|
||||
To cherry pick PR 12345 onto release-2.22 and propose is as a PR, run:
|
||||
To cherry pick PR 12345 onto release-3.2 and propose is as a PR, run:
|
||||
|
||||
```sh
|
||||
hack/cherrypick.sh upstream/release-2.2 12345
|
||||
./hack/patch/cherrypick.sh ${UPSTREAM_REMOTE}/release-3.2 12345
|
||||
```
|
||||
|
||||
To cherry pick 12345 then 56789 and propose them togther as a single PR, run:
|
||||
|
||||
```
|
||||
hack/cherrypick.sh upstream/release-2.2 12345 56789
|
||||
./hack/patch/cherrypick.sh ${UPSTREAM_REMOTE}/release-3.2 12345 56789
|
||||
```
|
||||
|
||||
|
||||
|
2
hack/patch/cherrypick.sh
Normal file → Executable file
2
hack/patch/cherrypick.sh
Normal file → Executable file
@ -127,7 +127,7 @@ Cherry pick of ${PULLSUBJ} on ${rel}.
|
||||
$(printf '%s\n' "${SUBJECTS[@]}")
|
||||
EOF
|
||||
|
||||
hub pull-request -F "${prtext}" -h "${GITHUB_USER}:${NEWBRANCH}" -b "etcd:${rel}"
|
||||
hub pull-request -F "${prtext}" -h "${GITHUB_USER}:${NEWBRANCH}" -b "coreos:${rel}"
|
||||
}
|
||||
|
||||
git checkout -b "${NEWBRANCHUNIQ}" "${BRANCH}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user