Skip to content

Commit ee3d8b4

Browse files
Fix shared code policy triggering on PRs with zero file changes (#64407)
1 parent 09d6808 commit ee3d8b4

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

.github/policies/resourceManagement.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Policybot docs live at https://eng.ms/docs/more/github-inside-microsoft/policies/resource-management
2-
id:
2+
id:
33
name: GitOps.PullRequestIssueManagement
44
description: GitOps.PullRequestIssueManagement primitive
5-
owner:
5+
owner:
66
resource: repository
77
disabled: false
8-
where:
8+
where:
99
configuration:
1010
resourceManagementConfiguration:
1111
scheduledSearches:
@@ -347,13 +347,12 @@ configuration:
347347
- payloadType: Pull_Request
348348
- isAction:
349349
action: Opened
350-
- or:
351-
- includesModifiedFiles:
352-
files:
353-
- src/Shared/Runtime
350+
- includesModifiedFiles:
351+
files:
352+
- src/Shared/Runtime
354353
then:
355354
- addReply:
356-
reply: Greetings human! You've submitted a PR that modifies code that is shared with https://github.com/dotnet/runtime . Please make sure you synchronize this code with the changes in that repo!
355+
reply: Greetings! You've submitted a PR that modifies code that is shared with https://github.com/dotnet/runtime . Please make sure you synchronize this code with the changes in that repo!
357356
- addLabel:
358357
label: 'Attention: Shared Code Modified'
359358
description: '[Shared Code PRs] Flag PRs that affect shared code src/Shared/Runtime'
@@ -759,8 +758,8 @@ configuration:
759758
- enableAutoMerge:
760759
mergeMethod: "squash"
761760
description: '[Infrastructure PRs] Add area-infrastructure label to dependabot update Pull Requests & enable auto-merge'
762-
onFailure:
763-
onSuccess:
761+
onFailure:
762+
onSuccess:
764763

765764

766765

0 commit comments

Comments
 (0)