Apply the same refactor across 10 repos in a monorepo-adjacent org
Quand l'utiliser : You need to bump a dependency or rename an import across many repos and don't want to clone and context-switch manually.
Prérequis
- Local clones or write access — SSH keys configured
Déroulement
-
Enumerate reposList every repo under ~/code/acme. For each, switch working directory, run git_status, and tell me the current branch.✓ Copié→ Per-repo status
-
Branch and apply changeIn each repo, create branch 'chore/bump-foo', bump foo from 1.x to 2.x in package.json, commit with message 'chore: bump foo', push, and open a PR (via github MCP).✓ Copié→ PR URLs for each repo
Résultat : Cross-repo change dispatched in one conversation.
Pièges
- Commit storm — a bad refactor now lives in 10 PRs — Test on one repo first; only then dispatch to the rest
- Sign-off / DCO required but unsigned — Enable GIT_SIGN_COMMITS and set GIT_USERNAME/GIT_EMAIL