gitbutler icon indicating copy to clipboard operation
gitbutler copied to clipboard

Support native github stacks

Open mfattakhov opened this issue 7 months ago • 5 comments

GitHub finally adds support for native stacked PRs 🥳 I guess gitbutler will have to learn how to use it

I am sure you already have this planned and are working on it but the open issue with feedback and progress tracking won't hurt, right?

mfattakhov avatar Apr 14 '26 07:04 mfattakhov

Thanks a lot for reporting. And of course, thanks for creating this tracking issue for us 😅.

Right now, I don't think there's any resources we could throw at the problem, but I'm sure we will get to it eventually.

Byron avatar Apr 14 '26 12:04 Byron

For context, this seems to be the documentation page for the native feature: https://github.github.com/gh-stack/

Edit: And it looks like you don't need to use the GitHub CLI for it, if you have a stack in GitButler you should be able to create the PRs directly in the GitHub UI (setting the target branch of each PR to be the branch one step lower in the stack), and it should work, if I'm reading the docs correctly: https://github.github.com/gh-stack/faq/#will-this-work-with-a-different-tool-for-stacking

So it looks like the main thing that would be needed on the GitButler end is potentially some changes to the "create PR" integration to highlight this (which I don't really use, I make the PRs directly in the GitHub UI today, so I don't know what that would entail).

sarahhodne avatar Apr 14 '26 13:04 sarahhodne

Yeah, tested, its enough to just create local branches and then run gh stack init --adopt branch-bottom branch-middle branch-top

But you have to leave gitbutler/workspace and be at any of branches from stack

mfattakhov avatar Apr 14 '26 15:04 mfattakhov

Related to #10936, which captures the merge-target semantics that native stacked PR integration only partially addresses, including the request to separate a PR's review base from its final merge target.

krlvi avatar Jul 19 '26 19:07 krlvi

This has been completed in 0.22

Caleb-T-Owens avatar Aug 12 '26 15:08 Caleb-T-Owens