Workflows
Cross-Repository Integration Workflow
Coordinate multi-repo changes with shared task IDs, dependency-aware release order, and integrated validation to reduce cross-repo breakage.
- Teams turning commands into repeatable routines
- Readers who need sequencing, branch, and sync discipline
- Basic understanding of fetch, pull, push, and branches
- A sense of how and why branches diverge
- Copying a workflow without checking branch state
- Choosing the wrong integration path on shared branches
Citations & Further Reading
- Git Basics Working with Remotes [Book]
- Git worktree [Official]
- git-scm.com — Git tag [Official]
What you will learn
- Understand the core purpose of Cross-Repository Integration Workflow
- Master the basic usage and common options of Cross-Repository Integration Workflow
- Coordinate multi-repo changes with shared task IDs, dependency-aware release order, and integrated validation to reduce cross-repo breakage.
- Understand key concepts: Recommended practices
- Know when to use this feature and when to avoid it
For multi-repo initiatives, failure usually comes from sequencing and version alignment, not from one repository’s local code quality.
Start with a problem
Your team is collaborating on a project, branches are growing, merges are becoming more frequent — but there's no stable collaboration rhythm. Everyone syncs code their own way, and conflicts are piling up.
Recommended practices
1. Share one task identity across repositories
Use a unified prefix across repo branches, for example:
feature/ORD-142-apifeature/ORD-142-webfeature/ORD-142-worker
This makes PRs, logs, and release notes linkable.
2. Maintain an integration checklist
At minimum include:
- involved repositories and branches
- dependency order and release sequence
- config/migration requirements
- rollback strategy
3. Use an integrated validation environment
Per-repo tests are necessary but not sufficient. Validate end-to-end behavior with real dependency wiring.
4. Release in dependency order
Usually publish protocol/back-end layers before dependents.
5. Capture a post-release version matrix
Record which tag/commit from each repository was deployed together.
If one repository moves API contracts while another still runs previous assumptions, isolated test success can hide integration breakage.
Common mistakes
Mistake 1: coordination only in chat threads
Without a durable checklist, handoffs and retrospectives become unreliable.
Mistake 2: independent repo releases without global sequencing
This creates avoidable compatibility windows.
Mistake 3: rollback plan only for one repository
Cross-repo changes often require coordinated rollback or compatibility bridges.
- List all repos and target branches.
- Define release order and latest allowed release time.
- Define rollback action per repo.
- Record final deployed commit/tag mapping.
Good follow-up reads
Feature branch collaborationFork and upstream syncMerge queue workflow
Try it yourself
- Practice the cross-repo-integration-workflow command in a test repository and observe state changes before and after
- Experiment with different options and compare the output differences
- Simulate a real scenario where you would need to use this, and walk through the full process
Further reading
Keep going on the same topic: