Skip to content
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

Update prepare_release.py to fetch the original PR of each backport PR #2357

Merged

Conversation

gsakkis
Copy link
Contributor

@gsakkis gsakkis commented Jun 16, 2021

Update prepare_release.py to fetch the original PR of each backport PR, e.g. #2354 instead of #2355.

Note: the fix relies on backport PRs having head.ref that starts with backport-{ORIGINAL_PR_NUM} (e.g. backport-2354-to-release-2.3).


TYPE: NO_HISTORY

@gsakkis gsakkis requested a review from Shelnutt2 June 16, 2021 13:49
@shortcut-integration
Copy link

This pull request has been linked to Clubhouse Story #8210: History generation script doesn't work.

@Shelnutt2 Shelnutt2 merged commit 8f3f846 into release-2.3 Jun 17, 2021
@Shelnutt2 Shelnutt2 deleted the gsk/ch8210/fix-prepare-release-script-for-backport-prs branch June 17, 2021 10:39
@github-actions
Copy link
Contributor

The backport to release-2.3 failed:

The process '/usr/bin/git' failed with exit code 1

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-release-2.3 release-2.3
# Navigate to the new working tree
cd .worktrees/backport-release-2.3
# Create a new branch
git switch --create backport-2357-to-release-2.3
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick --mainline 1 8f3f846c1fe377a6a22348ea8f8d42e2d05b18aa
# Push it to GitHub
git push --set-upstream origin backport-2357-to-release-2.3
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-release-2.3

Then, create a pull request where the base branch is release-2.3 and the compare/head branch is backport-2357-to-release-2.3.

Shelnutt2 pushed a commit that referenced this pull request Jun 17, 2021
#2357)

* Update prepare_release.py to fetch the original PR of each backport PR

* Pass GITHUB_TOKEN when running prepare_release.py as a GH action
gsakkis added a commit that referenced this pull request Jun 17, 2021
#2357)

* Update prepare_release.py to fetch the original PR of each backport PR

* Pass GITHUB_TOKEN when running prepare_release.py as a GH action
Shelnutt2 added a commit that referenced this pull request Jun 17, 2021
#2357) (#2362)

* Update prepare_release.py to fetch the original PR of each backport PR

* Pass GITHUB_TOKEN when running prepare_release.py as a GH action

Co-authored-by: George Sakkis <george.sakkis@tiledb.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants