Skip to content

Conversation

@baronfel
Copy link
Member

Context

This kind of comment is really annoying. This should fix it.

Changes Made

Force there to be any files at all in a PR before performing the swr-modification checks.

@baronfel baronfel requested a review from a team as a code owner October 16, 2025 21:31
Copilot AI review requested due to automatic review settings October 16, 2025 21:31
@dotnet-policy-service
Copy link
Contributor

1 file(s) have code issues.

File Issues
.github/policies/resourceManagement.yml Exception during deserialization. Failed to create an instance of type 'GitOps.PullRequestIssueManagement.Core.Primitives.Data.Frequencies.SearchFrequency'.. Cannot dynamically create an instance of type 'GitOps.PullRequestIssueManagement.Core.Primitives.Data.Frequencies.SearchFrequency'. Reason: Cannot create an abstract class.

Total execution time: 0.00 seconds

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 updates the resourceManagement policy configuration to prevent empty PRs from incorrectly matching the .swr file pattern logic.

  • Adds a guard condition requiring at least one file to be present before evaluating subsequent file pattern checks.
  • Includes explanatory comments clarifying the rationale for the added condition.

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.

3 participants