cherry-pick

$npx mdskill add microsoft/DirectXShaderCompiler/cherry-pick

Cherry-picks a commit onto another branch and opens a PR.

  • Solves the task of moving a specific commit to a release branch.
  • Depends on git command-line tools for cherry-picking and branching.
  • Uses the provided commit SHA and target branch to perform the operation.
  • Creates a pull request with a title prefixed with [Cherry-Pick].

SKILL.md

.github/skills/cherry-pickView on GitHub ↗
---
name: cherry-pick
description: Cherry-pick a commit onto another branch and open the PR. Use when the user asks to cherry-pick or backport a commit or PR to a release branch.
---

# Cherry-picking commits

Cherry-pick the commit with `git cherry-pick -x <sha>` so the source SHA is
recorded in git's standard format. Keep the commit message as git generates it
by default. Prefix the PR title with `[Cherry-Pick]`.