Cherry-pick Commit into Release Branch
Cherry-pick a commit or PR from main into a release branch and retitle it as a cherry-pick. The deliverable is a new commit with the updated title on the release branch.
Editor's Note
Ensure the release branch is created and synced with `microsoft/playwright` before running the command. The user must explicitly push the changes using `git push upstream release-<version>` after the cherry-pick is completed.
When to Use It
- Backport a bug fix from main to a specific release branch.
- Port a feature change into a release branch for a specific version.
SKILL.md
SkillsHunter provides this listing for informational purposes only. Review the skill’s source, license, and required permissions before use. You are responsible for deciding whether to install or run it. Terms of Use
---
name: playwright-cherry-pick
description: Cherry-pick a commit or PR from main into a release branch (release-<version>) and retitle it as cherry-pick(#<pr>): <original title>. Use when asked to cherry-pick, backport, or port a change into a release.
user_invocable: true
---
# Cherry-pick into a release branch
`/playwright-cherry-pick <version> <commit>`
Check out `release-<version>`, creating it if needed, synced to `microsoft/playwright`
(`git fetch upstream release-<version>` and use `FETCH_HEAD`, not a remote-tracking name).
Cherry-pick the commit and retitle it `cherry-pick(#<pr>): <original title>`, where `<pr>` is the
number from the trailing `(#<pr>)` of the original subject, dropped from the title. Body stays empty.
Report the result and stop.
**Never push.** The user asks explicitly, then: `git push upstream release-<version>`.
Community Reviews & Field Notes
Tried this skill on your own project? Share the model you used and the results you got.