-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Cherry pick script guide #593
Conversation
docs/developer/cherry_pick.md
Outdated
./cherry_pick_pull.sh upstream/release-3.14 12345 56789 | ||
``` | ||
|
||
If the arguments number less than 2, this script will exit with help information. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the arguments number less than 2, this script will exit with help information. | |
If the number of parameters is less than 2, this script will exit with help information. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed according to the review comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good :)
0ee4344
to
3b0232b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
/assign @wbc6080 @Shelley-BaoYue @zhiyingfang2022
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fisherxu The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
docs/developer/cherry_pick.md
Outdated
This page explains how to use shell script `hack/cherry_pick_pull.sh` in kubeedge/kubeedge repo to cherry pick the patch to release branch. | ||
|
||
|
||
# Cherry Pick Settings |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for reminding, I have changed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some small suggestions on format for reference~
docs/developer/cherry_pick.md
Outdated
|
||
```shell | ||
# set GITHUB_USER | ||
export GITHUB_USER = <your-github-user> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
export GITHUB_USER=<your-github-user>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, modified already
|
||
```shell | ||
# examine whether the hub is installed successfully | ||
which hub |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to add the command to install hub
directly here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The installation of the hub command involves handling different platform and various scenarios. Therefore I am concerned that too many hub command installation description might affect the completeness and consistency of the current document. User could gain hub installation instructions easily from the link below.
docs/developer/cherry_pick.md
Outdated
|
||
3. Other environment variables setting | ||
|
||
- variable `DRY_RUN` is used to skip `git push` and creating PR steps, This is useful for creating patches to a release branch without making a PR.When DRY_RUN is set the script will leave you in a branch containing the commits you cherry-picked. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- variable `DRY_RUN` is used to skip `git push` and creating PR steps, This is useful for creating patches to a release branch without making a PR.When DRY_RUN is set the script will leave you in a branch containing the commits you cherry-picked. | |
- The variable `DRY_RUN` is used to skip `git push` and create PR steps, This is useful for creating patches to a release branch without making a PR. When DRY_RUN is set the script will leave you in a branch containing the commits you cherry-picked. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, modified
docs/developer/cherry_pick.md
Outdated
|
||
- variable `DRY_RUN` is used to skip `git push` and creating PR steps, This is useful for creating patches to a release branch without making a PR.When DRY_RUN is set the script will leave you in a branch containing the commits you cherry-picked. | ||
|
||
- variable `REGENERATE_DOCS` is used to regenerate documentation for the target branch after picking the specified commits, This is useful when picking commits containing changes to API documentation. **Note**: Set variable `REGENERATE_DOCS` may affect the cherry pick performance. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- variable `REGENERATE_DOCS` is used to regenerate documentation for the target branch after picking the specified commits, This is useful when picking commits containing changes to API documentation. **Note**: Set variable `REGENERATE_DOCS` may affect the cherry pick performance. | |
- The variable `REGENERATE_DOCS` is used to regenerate documentation for the target branch after picking the specified commits, This is useful when picking commits containing changes to API documentation. **Note**: Set variable `REGENERATE_DOCS` may affect the cherry pick performance. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, modified
docs/developer/cherry_pick.md
Outdated
|
||
- variable `REGENERATE_DOCS` is used to regenerate documentation for the target branch after picking the specified commits, This is useful when picking commits containing changes to API documentation. **Note**: Set variable `REGENERATE_DOCS` may affect the cherry pick performance. | ||
|
||
- variables `UPSTREAM_REMOTE` (default: upstream) and `FORK_REMOTE` (default: origin) are used to override the default remote names to what you have locally. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- variables `UPSTREAM_REMOTE` (default: upstream) and `FORK_REMOTE` (default: origin) are used to override the default remote names to what you have locally. | |
- The variables `UPSTREAM_REMOTE` (default: upstream) and `FORK_REMOTE` (default: origin) are used to override the default remote names to what you have locally. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, modified
docs/developer/cherry_pick.md
Outdated
|
||
# Execution steps | ||
|
||
1. execute cherry_pick_pull.sh with parameters, at least include `remote branch` and `pr number` (could be multiple pr numbers) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1. execute cherry_pick_pull.sh with parameters, at least include `remote branch` and `pr number` (could be multiple pr numbers) | |
1. Execute cherry_pick_pull.sh with parameters, at least include `remote branch` and `pr number` (could be multiple pr numbers) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, modified
3b0232b
to
b4f5ecc
Compare
Signed-off-by: Xue Mingdi <[email protected]>
b4f5ecc
to
9cd75cb
Compare
/lgtm |
Which issue(s) this PR fixes:
Fixes #
#425
What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
docs update
What is the current behavior? (You can also link to an open issue here)
Add auto cherry-pick guidance document for developers #425
What is the new behavior (if this is a feature change)?
Add user guide for cherry pick shell script usage.
Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)
No
Other information:
N.A