AI-native design editor. Open-source Figma alternative.
docs: describe rebasing and merging stacked pull requests (#869)
Danila Poyarkov64c9461407a1
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex 736eddebc..cd108be63 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -71,8 +71,8 @@ Pull requests must be reviewable without guessing the author's intent.A stack is a chain of pull requests: the bottom one targets `master`, each one above targets the branch below. CI and branch protection treat every layer as targeting `master`.- Manage stacks with [`gh stack`](https://github.com/github/gh-stack) (`init`, `add`, `submit`, `sync`; add `--remote origin` with several remotes); a stacked pull request's base cannot be edited.-- Keep it linear: rebase the layers when `master` or a lower branch moves; never merge `master` in.-- Merge from the top layer through the merge queue; it lands every layer below too. Auto-merge is unavailable for stacks.+- Keep it linear: when `master` or a lower branch moves, rebase the layers (`gh stack rebase` or the pull request's Rebase button) and push with `--force-with-lease`. Merging `master` in blocks the stack from merging.+- Merge from the top layer through the merge queue, in the UI or with `gh api -X PUT repos/{owner}/{repo}/pulls/<n>/merge-async -f merge_action=merge_queue`; it lands every layer below too. `gh pr merge` and auto-merge are unavailable for stacks.### Reviewability