orca
orca copied to clipboard
[Feature]: PR dependency awareness (stacked PRs / PR tree), read-only via external tools
Problem or use case
A single task of mine often spans several repos, and within a repo my PRs are stacked: PR B depends on PR A, PR C depends on B. That produces a PR tree. Today Orca shows each PR as an independent thing, so I can't see:
- which PR is blocked on which,
- that an upstream PR just merged and my downstream branch now needs a rebase,
- whether a workspace is safe to work on or is waiting on its parent.
I already use an external tool for the mechanics of stacking. I do not want Orca to own restacking/rebasing. I want Orca to understand the stack that already exists and reflect it.
Proposed solution
- [ ] Read PR dependency information from the tools that already produce it (e.g. Graphite, git-town, Sapling metadata, or a PR body
Depends on #N/Stacked on #Nconvention) — Orca stays read-only. - [ ] Visualize the dependency tree across workspaces, including when the stack crosses repos.
- [ ] Propagate state: mark a workspace/PR as blocked while its parent is open, and clear it when the parent merges.
- [ ] Notify when a PR I depend on merges or changes, so I know a downstream branch needs attention.
Alternatives or additional context
- Explicitly not asking for automatic restack/rebase — that belongs to the stacking tool.
- I searched open and closed issues for "stacked PR" / "PR tree" / "dependent PR" and found nothing, so this looks like a genuine gap.
- Provider-neutrality matters: the dependency convention should work for GitLab and other providers, not just GitHub.
- Part of #7918 (umbrella: multi-repo work driven by agent-managed worktrees and stacked PRs).