Repository navigation
Show GitLab stacked MRs in the MR review tool #35579
jonathanlinford
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I don't see any sign of GitLab's stacked MRs in T3's MR review tool. When I open an MR that's part of a stack, nothing tells me what's above or below it, so I have to check GitLab to see where it sits.
GitHub PRs already get this. The GitHub provider sets
stacks: trueand implementsgetChangeRequestStackwith GitHub's stacks endpoint. The GitLab provider doesn't declarestacksat all.I'm guessing that's because GitLab has no stacks API. Its native stacked MRs (added in 19.1) are worked out from branches: an MR is in a stack when it targets another open MR's source branch, or when another open MR targets its source branch. Since 19.2 both MRs also need the same author, and a stack tops out at 20 MRs. T3 could build the stack the same way, starting from the current MR and walking open MRs with the
source_branch/target_branchfilters on the MR list endpoint. That would also work on self-hosted GitLab older than 19.1.What I'd like is the stack view GitHub PRs get: the layers in order with the current one marked, and a way to jump between them.
Side note: from reading
threadPullRequests.ts, T3 already groups a thread's linked PRs into a stack by branch chain for any provider. I haven't tried it with GitLab, and it only helps when every layer is linked to the same thread.I'm on v0.1.9 stable, macOS.
All reactions