Add "unstack all" to stack view - #8999
Merged
Alex Ross (alexr00) merged 2 commits intoOct 4, 2026
Merged
Conversation
Alex Ross (alexr00)
added this pull request to stack #8993
October 1, 2026 14:20
Alex Ross (alexr00)
force-pushed
the
alexr00/cautious-marsupial
branch
from
October 1, 2026 14:23
05dc8b3 to
4a7302e
Compare
Alex Ross (alexr00)
removed this pull request from stack #8993
October 1, 2026 14:33
Alex Ross (alexr00)
added this pull request to stack #9001
October 1, 2026 14:35
Contributor
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
The destructive operation has a stale-stack race, and the nested action control introduces an accessibility issue.
Review effort: Balanced
Findings: 2
Open (3)
What changed in this PR
Adds an “Unstack all” action to pull request stack views, backed by the GitHub stacks API.
Changes:
- Adds permission-aware unstack UI, confirmation, errors, and responsive styling.
- Implements unstack API handling and refreshes affected panels.
- Adds coverage for API responses, permissions, cancellation, and panel refreshes.
| File | Description |
|---|---|
webviews/editorWebview/test/overview.test.tsx |
Tests unstack UI and errors. |
webviews/editorWebview/index.css |
Styles stack actions and errors. |
webviews/components/pullRequestStack.tsx |
Adds the unstack action. |
webviews/common/context.tsx |
Exposes unstack messaging. |
src/view/prsTreeDataProvider.ts |
Refreshes panels after stacking. |
src/test/view/prsTree.test.ts |
Tests stack panel refreshes. |
src/test/mocks/queryProvider.ts |
Supports mocked HTTP statuses. |
src/test/github/pullRequestOverview.test.ts |
Tests unstack orchestration. |
src/test/github/pullRequestModel.test.ts |
Tests unstack API behavior. |
src/github/views.ts |
Defines the unstack result type. |
src/github/pullRequestOverview.ts |
Handles confirmation and refreshes. |
src/github/githubRepository.ts |
Calls the GitHub unstack endpoint. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Alex Ross (alexr00)
removed this pull request from stack #9001
October 2, 2026 18:51
Alex Ross (alexr00)
force-pushed
the
alexr00/cautious-marsupial
branch
from
October 3, 2026 10:11
ce036cc to
90ec9cc
Compare
Alex Ross (alexr00)
added this pull request to stack #9012
October 3, 2026 10:39
Alex Ross (alexr00)
marked this pull request as ready for review
October 3, 2026 10:40
Comment on lines
+1146
to
+1150
| if (remainingPullRequests.length === stack.size) { | ||
| void vscode.window.showInformationMessage(vscode.l10n.t('No pull requests were unstacked. Merged, queued, or currently merging pull requests remain in the stack.')); | ||
| } else { | ||
| void vscode.window.showInformationMessage(vscode.l10n.t('Eligible pull requests unstacked. {0} merged, queued, or currently merging pull requests remain in the stack.', remainingPullRequests.length)); | ||
| } |
roblourens
approved these changes
Oct 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


No description provided.