Skip to content

[Feature]: Show multiple MRs/PRs per worktree in the right panel (stacked layout) #9213

Description

@NathanDai5287

Problem or use case

Orca links exactly one MR/PR to a worktree — linkedGitLabMR, linkedPR, linkedBitbucketPR, etc. are all singular scalar fields, auto-detected from the branch, and the right-side panel shows that single MR. There is no --pr/--mr setter and no array form (orca worktree set only exposes --issue / --linear-issue).

But a single feature often produces more than one MR:

  • The same branch/feature is split into several MRs (e.g. a backend MR + a frontend MR that ship together).
  • A stack of MRs where B depends on A, C depends on B — I want to see the whole stack in one place, not one card per node.

Today I can't associate those MRs with a single worktree, and the panel can only surface one of them. So the panel under-represents what the worktree actually is.

Proposed solution

  • Allow a worktree to carry more than one linked MR/PR (make the linked-MR field a list, or add an explicit attach path).
  • Render them in the right panel as a stacked layout — an ordered list of MR cards for the feature, each with its own status (open/merged/draft, checks, reviewers).
  • Keep auto-detection for the branch's own MR, but let additional MRs be attached (CLI flag and/or UI), e.g. orca worktree set --add-mr <url> (repeatable).
  • Provider-neutral: works for GitLab MRs and GitHub/Bitbucket/etc. PRs, not just one.

Alternatives or additional context

Metadata

Metadata

Assignees

Labels

P2Normal priority: nice-to-have or lower urgency

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions