Support native github stacks
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?
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.
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).
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
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.
This has been completed in 0.22