بنقرة واحدة
cherry-pick
// Cherry-pick a commit from main to a Sui release branch, create the release PR, and report the PR URL.
// Cherry-pick a commit from main to a Sui release branch, create the release PR, and report the PR URL.
| name | cherry-pick |
| description | Cherry-pick a commit from main to a Sui release branch, create the release PR, and report the PR URL. |
Cherry-picks a commit from main to a release branch and creates a PR.
/cherry-pick <commit-sha> <release-version>
Example: /cherry-pick abc123 1.64
$ARGUMENTS should contain two space-separated values:
Parse the arguments to extract the commit SHA and release version. If arguments are missing or unclear, ask the user for clarification.
Execute the following steps:
git show --oneline --no-patch <commit-sha>
Save the commit message for use in the PR title.
The release branch naming convention is releases/sui-v<version>.0-release.
git fetch origin releases/sui-v<version>.0-release
git checkout releases/sui-v<version>.0-release
git cherry-pick <commit-sha>
If there are conflicts:
git cherry-pick --continueUse the naming convention cherry-pick-<short-sha>-to-<version>:
git checkout -b cherry-pick-<short-sha>-to-<version>
git push -u origin cherry-pick-<short-sha>-to-<version>
Create a PR targeting the release branch:
gh pr create --base releases/sui-v<version>.0-release \
--title "[<version>] <original-commit-message>" \
--body "## Summary
Cherry-pick of <original-pr-link-if-available> to the <version> release branch.
Original commit: <full-commit-sha>"
git checkout main
Run Sui dual execution replay between base and tip commits, recover failed steps, build, and commit replay instrumentation.
Safely modify or verify Sui protocol config changes, including version bumps, release-branch checks, guards, and snapshots.
Debug deterministic Sui simtest failures with structured experiments, logging-only changes, and NOTEBOOK.md observations.
Prepare, validate, and send or update a pull request with full due diligence