Repository navigation
Fix mergeability polling in pull request overview - #8954
Merged
Alex Ross (alexr00) merged 4 commits intoOct 9, 2026
Merged
Conversation
Contributor
Author
|
@microsoft-github-policy-service agree |
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
Add a component test covering the unknown mergeability polling transition.
Pull request overview
Fixes mergeability polling by unwrapping the API response and sharing its response type across the model and webview.
Changes:
- Corrects polling state updates.
- Adds
PullRequestMergeabilityResult. - Applies the shared type across relevant APIs.
File summaries
| File | Summary |
|---|---|
webviews/components/merge.tsx |
Unwraps mergeability; needs coverage for the unknown-state polling transition. |
webviews/common/context.tsx |
Types the mergeability response. |
src/github/pullRequestModel.ts |
Uses the shared response type. |
src/github/interface.ts |
Defines the shared result interface. |
Review details
Suppressed comments (1)
webviews/components/merge.tsx:196
- This regression fix has no test covering the
Unknownpolling path. The existing webview tests do not renderMergeStatusAndActionsor verify that a{ mergeability, conflicts }response updates the displayed state, so this response-shape bug could recur without failing the listed checks. Add a component test with a mockedcheckMergeabilityresponse and timer advancement that asserts the checking state transitions.
const { mergeability: newMergeability } = await checkMergeability();
setMergeability(newMergeability);
- Files reviewed: 4/4 changed files
- Comments generated: 0
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The regression test is not discovered or executed by the configured test runner.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Review details
- Files reviewed: 5/5 changed files
- Comments generated: 1
- Review effort level: Lite
Alex Ross (alexr00)
previously approved these changes
Sep 30, 2026
Alex Ross (alexr00)
left a comment
Member
There was a problem hiding this comment.
Thanks for the PR!
Alex Ross (alexr00)
enabled auto-merge (squash)
September 30, 2026 10:39
Alex Ross (alexr00)
approved these changes
Oct 9, 2026
Member
|
/AzurePipelines run |
|
Azure Pipelines: 2 pipeline(s) were filtered out due to trigger conditions. |
Eleanor Boyd (eleanorjboyd)
approved these changes
Oct 9, 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.

Fixes #8953
Summary
When GitHub initially returns an unknown mergeability state, the polling request returns an object containing
mergeabilityandconflicts. The webview previously stored that entire object as its mergeability state, so polling stopped and the status remained "Checking if this branch can be merged..." indefinitely.Testing
npm run compile:nodenpm run lintnpm run hygienegit diff --check