Skip to content

feat(skills): Add backport-pr skill - #22434

Merged
andreiborza merged 18 commits into
developfrom
ab/backport-pr-skill
Jul 22, 2026
Merged

feat(skills): Add backport-pr skill#22434
andreiborza merged 18 commits into
developfrom
ab/backport-pr-skill

Conversation

@andreiborza

Copy link
Copy Markdown
Member

What

Adds a backport-pr skill that backports a merged PR to a maintenance major branch.

  • Defaults to v10, with a target-major parameter for older majors (e.g. v9).
  • Cherry-picks the PR's squash-merge commit onto the target branch.
  • Namespaces the commit/PR title scope, e.g. fix(core): becomes fix(v10/core):.
  • Opens a draft backport PR with a Backport of: #<pr> body and cross-links the original.

Why

develop is now v11 and released changes go onto the previous major's maintenance branch. This codifies the manual convention we used for the v9 backports so it's repeatable and consistent.

Adds a skill that backports a merged PR to a maintenance major branch
(v10 by default, with a target-major parameter for older majors like v9).
It cherry-picks the PR's squash-merge commit, namespaces the commit/PR
title scope (e.g. fix(core) -> fix(v10/core)), and opens a draft backport
PR following the convention used for the v9 backports.

Co-Authored-By: Opus 4.8 <noreply@anthropic.com>
Comment thread .agents/skills/backport-pr/SKILL.md Outdated
Run verification before finalizing the commit so yarn format changes are
folded into the pushed commit instead of left uncommitted. Replace the
personal ab/ branch prefix with a neutral backport/ default.
The branch name isn't load-bearing; only the base branch and commit/PR
title conventions matter.
Comment thread .agents/skills/backport-pr/SKILL.md Outdated
Comment thread .agents/skills/backport-pr/SKILL.md
The amend replaces the body with the one-line Backport of: note, so drop
the contradictory keep-the-body wording. Use a prebuilt namespaced title
placeholder so a scope-less source PR yields fix(v10): not fix(v10/):.
gh pr view takes either, so pass the input through unchanged and use the
resolved number for the Backport of: reference so URLs render correctly.
Comment thread .agents/skills/backport-pr/SKILL.md
Comment thread .agents/skills/backport-pr/SKILL.md
Comment thread .agents/skills/backport-pr/SKILL.md Outdated
Comment thread .agents/skills/backport-pr/SKILL.md Outdated
Use lint:fix so auto-fixable issues are applied, git add -u so a repo-wide
format doesn't stage unrelated edits, and capture the gh pr create URL for
the cross-link comment.
Comment thread .agents/skills/backport-pr/SKILL.md
Comment thread .agents/skills/backport-pr/SKILL.md
The commands now match the prose: amend with the namespaced title for a
single squash commit, or fold fixes with --no-edit for multi-commit
backports where the title lives on the PR.
Comment thread .agents/skills/backport-pr/SKILL.md Outdated

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 4f530d3. Configure here.

Comment thread .agents/skills/backport-pr/SKILL.md Outdated
@andreiborza
andreiborza marked this pull request as ready for review July 22, 2026 09:06
@andreiborza
andreiborza merged commit 5483861 into develop Jul 22, 2026
298 checks passed
@andreiborza
andreiborza deleted the ab/backport-pr-skill branch July 22, 2026 09:12
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