-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
chore: improve backporting process #11924
Conversation
f819915
to
8d62843
Compare
8d62843
to
9068648
Compare
* now contains all the commits of a PR, not only the last one * now copies labels on the backport PRs * now copies milestones on the backport PRS * now copies requested reviewers to the backport PRS The action instructions for manually merging were mostly wrong and rarely worked. The actions are now more descriptive and separated (using worktrees) Signed-off-by: Joshua Schmid <jaiks@posteo.de>
9068648
to
2a8191e
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.
lgtm
Backport failed for Please cherry-pick the changes locally. git fetch origin release/3.0.x
git worktree add -d .worktree/backport-11924-to-release/3.0.x origin/release/3.0.x
cd .worktree/backport-11924-to-release/3.0.x
git checkout -b backport-11924-to-release/3.0.x
ancref=$(git merge-base c74cbc72963c9d6ca9916c8f47b617901d8b22de 2a8191e26346ab5137442862bb87bfbb7c3b2b09)
git cherry-pick -x $ancref..2a8191e26346ab5137442862bb87bfbb7c3b2b09 |
Backport failed for Please cherry-pick the changes locally. git fetch origin release/3.1.x
git worktree add -d .worktree/backport-11924-to-release/3.1.x origin/release/3.1.x
cd .worktree/backport-11924-to-release/3.1.x
git checkout -b backport-11924-to-release/3.1.x
ancref=$(git merge-base c74cbc72963c9d6ca9916c8f47b617901d8b22de 2a8191e26346ab5137442862bb87bfbb7c3b2b09)
git cherry-pick -x $ancref..2a8191e26346ab5137442862bb87bfbb7c3b2b09 |
Backport failed for Please cherry-pick the changes locally. git fetch origin release/3.2.x
git worktree add -d .worktree/backport-11924-to-release/3.2.x origin/release/3.2.x
cd .worktree/backport-11924-to-release/3.2.x
git checkout -b backport-11924-to-release/3.2.x
ancref=$(git merge-base c74cbc72963c9d6ca9916c8f47b617901d8b22de 2a8191e26346ab5137442862bb87bfbb7c3b2b09)
git cherry-pick -x $ancref..2a8191e26346ab5137442862bb87bfbb7c3b2b09 |
Backport failed for Please cherry-pick the changes locally. git fetch origin release/3.3.x
git worktree add -d .worktree/backport-11924-to-release/3.3.x origin/release/3.3.x
cd .worktree/backport-11924-to-release/3.3.x
git checkout -b backport-11924-to-release/3.3.x
ancref=$(git merge-base c74cbc72963c9d6ca9916c8f47b617901d8b22de 2a8191e26346ab5137442862bb87bfbb7c3b2b09)
git cherry-pick -x $ancref..2a8191e26346ab5137442862bb87bfbb7c3b2b09 |
Backport failed for Please cherry-pick the changes locally. git fetch origin release/3.4.x
git worktree add -d .worktree/backport-11924-to-release/3.4.x origin/release/3.4.x
cd .worktree/backport-11924-to-release/3.4.x
git checkout -b backport-11924-to-release/3.4.x
ancref=$(git merge-base c74cbc72963c9d6ca9916c8f47b617901d8b22de 2a8191e26346ab5137442862bb87bfbb7c3b2b09)
git cherry-pick -x $ancref..2a8191e26346ab5137442862bb87bfbb7c3b2b09 |
Successfully created backport PR for |
Summary
The action instructions for manually merging were mostly wrong and rarely worked.
Now they are more descriptive and isolated (using worktrees)
Fix https://konghq.atlassian.net/browse/KAG-2652