Skip to content

Show other VMR PRs in codeflow comments - #6748

Open
akoeplinger wants to merge 2 commits into
dotnet:mainfrom
akoeplinger:show-other-vmr-prs
Open

akoeplinger wants to merge 2 commits into
dotnet:mainfrom
akoeplinger:show-other-vmr-prs

Conversation

@akoeplinger

@akoeplinger akoeplinger commented Oct 2, 2026 •

Copy link
Copy Markdown
Member

Summary

Keep the existing VMR PR list and add a collapsed "Other PRs in the commit range" section for additional context. Group PRs by URI so duplicate references cannot appear in both lists. Both forward-flow and backflow lists now show each PR once, retaining its earliest position in the displayed history.

Fixes #6747

Before:

image

After (list is collapsed by default):

image

Validation

  • Passed: 22 focused VMR unit tests and all 63 codeflow tests.
  • Full build succeeded; DARC displays help.
  • scripts/verify did not pass: SQL Server connectivity failures and mock/assertion failures in the broader test suite.

Fixes dotnet#6747

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 121db1fa-a2dc-4abf-b41a-10ebc744f123
Copilot AI balanced review requested due to automatic review settings October 2, 2026 14:04

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Deduplication can incorrectly reorder PRs when one URI appears in multiple commits.

Review effort: Balanced
Findings: 1 Medium severity

Open (1)
What changed in this PR

Adds contextual VMR pull requests to backflow comments while leaving forward-flow comments unchanged.

Changes:

  • Separates path-matching and other PRs.
  • Adds a collapsed “Other PRs” section.
  • Adds focused grouping and failure tests.
File Description
VmrCodeflower.cs Groups and formats PR references.
VmrCodeFlowerCommentIncludedPRsTests.cs Tests filtering, deduplication, formatting, and failures.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/Microsoft.DotNet.Darc/DarcLib/VirtualMonoRepo/VmrCodeflower.cs Outdated
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 121db1fa-a2dc-4abf-b41a-10ebc744f123

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The implementation matches the linked issue and is comprehensively covered by focused tests.

Review effort: Balanced
Findings: None

Resolved since last review (1)

@akoeplinger
akoeplinger requested review from dkurepa and premun October 2, 2026 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show other VMR PRs in codeflow update comments

2 participants