Is it possible to merge only parts of a stack? #288
|
We’re often working like this:
I thought that GitHub Stacks would work nicely in such a scenario, but after creating a stack for the chain of branches mentioned above, the GitHub web UI only lets me merge the whole stack, not just the bugfix branch into the release branch. Am I missing something here or is this feature not suitable for this use case? I installed the skill for Claude using |
Replies: 2 comments 2 replies
I ran into this, and my understanding is that you would not add the stack that PR if your intention isn't to treat it as part of the stack. You're be basically committing or targeting that PR separately. Consider if you need to apply a bugfix to |
|
You can create a stack with the trunk as any arbitrary branch, not just your default branch ( So your "release stack" could look something like this: If you're using the CLI, you can create this by providing a specific trunk branch: Then after the entire stack is merged, you could open a separate PR to merge everything on |
You can create a stack with the trunk as any arbitrary branch, not just your default branch (
main). From what I'm understanding, I think the best path for you would be to create a stack where your release branch is the trunk branch, allowing other PRs to be merged into it. Then you will probably have a separate single PR for merging your release branch into main.So your "release stack" could look something like this:
If you're using the CLI, you can create this by providing a specific trunk branch:
gh stack init --base release/v1Then after the entire stack is merged, you could open a separate PR t…