Skip to content

Conversation

@adityamandaleeka
Copy link
Member

@adityamandaleeka adityamandaleeka commented Nov 17, 2025

The shared code policy in resourceManagement.yml was incorrectly triggering on pull requests that had zero file changes (most noticeable in Copilot PRs which are initially empty).

I'm not 100% sure but I think this is caused by an unnecessary or: wrapper around a single includesModifiedFiles condition. Let's see if this fixes it.

Copilot AI review requested due to automatic review settings November 17, 2025 23:11
@adityamandaleeka adityamandaleeka requested review from a team and wtgodbe as code owners November 17, 2025 23:11
@github-actions github-actions bot added the needs-area-label Used by the dotnet-issue-labeler to label those issues which couldn't be triaged automatically label Nov 17, 2025
@adityamandaleeka
Copy link
Member Author

@wtgodbe PTAL

@adityamandaleeka adityamandaleeka added area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework and removed needs-area-label Used by the dotnet-issue-labeler to label those issues which couldn't be triaged automatically labels Nov 17, 2025
Copilot finished reviewing on behalf of adityamandaleeka November 17, 2025 23:12
Copy link
Contributor

Copilot AI left a comment

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 fixes a bug in the shared code policy configuration where the policy was incorrectly triggering on pull requests with zero file changes. The root cause was an unnecessary or: wrapper around a single includesModifiedFiles condition, which likely caused the condition to always evaluate to true when a PR was opened.

  • Removed the unnecessary or: wrapper from the shared code policy condition
  • Cleaned up trailing whitespace on several lines

@adityamandaleeka adityamandaleeka merged commit ee3d8b4 into dotnet:main Nov 17, 2025
10 checks passed
@dotnet-policy-service dotnet-policy-service bot added this to the 11.0-preview1 milestone Nov 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants