Skip to content

Notify about missing opposite-dir subs - #6414

Merged
adamzip merged 12 commits into
dotnet:mainfrom
adamzip:notify-missing-opposite-sub
Jun 24, 2026
Merged

Notify about missing opposite-dir subs#6414
adamzip merged 12 commits into
dotnet:mainfrom
adamzip:notify-missing-opposite-sub

Conversation

@adamzip

@adamzip adamzip commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

@adamzip
adamzip requested review from Copilot, dkurepa and premun and removed request for Copilot and dkurepa June 19, 2026 13:50
Copilot AI review requested due to automatic review settings June 19, 2026 14:36

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.

Pull request overview

This PR adds a warning comment to newly created codeflow pull requests when an opposite-direction (reverse) codeflow subscription appears to be missing, helping repos detect incomplete bidirectional subscription setup.

Changes:

  • Invoke a new notification step after codeflow PR creation to detect missing opposite-direction subscriptions.
  • Add subscription lookup logic in CodeFlowPullRequestUpdater to determine whether the reverse flow exists for relevant channels.
  • Add a new PullRequestCommentBuilder helper to format the warning message.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
src/ProductConstructionService/ProductConstructionService.DependencyFlow/PullRequestUpdaters/CodeFlowPullRequestUpdater.cs Adds best-effort detection and PR warning emission for missing opposite-direction subscriptions during codeflow PR creation.
src/ProductConstructionService/ProductConstructionService.DependencyFlow/PullRequestCommentBuilder.cs Adds a new builder method to format the “missing opposite-direction subscription” PR warning text.

Copilot AI review requested due to automatic review settings June 22, 2026 09:57

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.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

@adamzip
adamzip merged commit 86f6a78 into dotnet:main Jun 24, 2026
8 of 11 checks passed
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.

4 participants