Perform migrations for Renovate dependency upgrades based on breaking changes identified in a review. Use after running /renovate-review.
Perform code migrations for a Renovate PR based on breaking changes identified during review.
pr-number (required): The PR number to migrate--comment (optional): Post the migration summary as a PR comment. If omitted, only output the summary locally.--push (optional): Push commits to the remote after completing migrations. If omitted, only commits locally.This skill should be run after /renovate-review has identified breaking changes that require code modifications.
First, check if the review information is already available:
Option A: Check conversation context
If /renovate-review was run earlier in the same conversation, the review details (breaking changes, affected files, required code changes) should already be in context. Use that information directly.
Option B: Load from GitHub PR comment If not in context, fetch the review comment from the PR:
gh pr view <pr-number> --json comments --jq '.comments[] | select(.body | contains("## Dependency Upgrade Review")) | .body'
From the review comment, extract:
gh pr view <pr-number> --json title,body,files
Use this to supplement the review information if needed (e.g., to get the full list of files changed by Renovate).
Use the "Required Code Changes" section from the review to guide migrations. For each breaking change: