Note
This feature is in public preview and subject to change.
Each pull request in a stack shows only the diff for its layer. This means reviewers can request changes on any pull request independently. When a reviewer requests changes on a pull request mid-stack, you should make the fix on the branch that owns the change and rebase so the branches above it pick up your update.
Addressing review feedback
-
Navigate to the branch that needs changes.
Shell gh stack checkout BRANCH-NAME
gh stack checkout BRANCH-NAMEYou can also move through the stack with
gh stack bottom,gh stack down,gh stack up, andgh stack top. -
Make the requested fixes, then stage and commit them.
Shell git add . git commit -m "helpful-commit-message"
git add . git commit -m "helpful-commit-message" -
Cascade the changes through the rest of the stack. This rebases every branch above the changed one so they pick up your fix.
Shell gh stack rebase
gh stack rebase -
Push the updated stack. This uses
--force-with-leaseto safely update the rebased branches.Shell gh stack push
gh stack push
After you push, each pull request above the changed one reflects the update, and any CI checks are re-triggered.