Skip to content

Commit 77ee1b1

Browse files
authored
Try to fix what I broke (#10459)
1 parent 542cdb3 commit 77ee1b1

File tree

1 file changed

+52
-50
lines changed

1 file changed

+52
-50
lines changed

.github/policies/disallow-edits.yml

Lines changed: 52 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -3,53 +3,55 @@ description: GitOps.PullRequestIssueManagement primitive
33
resource: repository
44

55
configuration:
6-
resourceManagementConfiguration:
7-
eventResponderTasks:
8-
- description: Close PRs that modify files whose "source of truth" is not in this repo.
9-
if:
10-
- payloadType: Pull_Request
11-
- or:
12-
- includesModifiedFiles:
13-
files:
14-
- xml/Microsoft.Extensions*/*
15-
excludedFiles:
16-
# These files use this repo as source-of-truth.
17-
- xml/Microsoft.Extensions.FileSystemGlobbing/*
18-
- xml/Microsoft.Extensions.FileSystemGlobbing.Abstractions/*
19-
- xml/Microsoft.Extensions.FileSystemGlobbing.Internal*/*
20-
- includesModifiedFiles:
21-
files:
22-
- xml/System.Composition/*
23-
- includesModifiedFiles:
24-
files:
25-
- xml/System.Formats.Cbor/*
26-
- includesModifiedFiles:
27-
files:
28-
- xml/System.Formats.Nrbf/*
29-
- includesModifiedFiles:
30-
files:
31-
- xml/System.Net.ServerSentEvents/*
32-
- includesModifiedFiles:
33-
files:
34-
- xml/System.Numerics.Tensors/*
35-
- includesModifiedFiles:
36-
files:
37-
- xml/System.Speech/*
38-
- includesModifiedFile:
39-
file: xml/System.Runtime.Serialization/ISerializationCodeDomSurrogateProvider.xml
40-
- includesModifiedFile:
41-
file: xml/System.Runtime.Serialization/ImportOptions.xml
42-
- includesModifiedFile:
43-
file: xml/System.Runtime.Serialization/XsdDataContractExporter.xml
44-
then:
45-
- addReply:
46-
reply: >-
47-
@${issueAuthor} - This PR edits files whose 'source of truth' for documentation is not in this repo. If you're editing the documentation, please make these updates in the /// comments in the source repo (either dotnet/runtime or dotnet/extensions) instead.
48-
- if:
49-
- not:
50-
- or:
51-
- activitySenderHasPermission:
52-
permission: write
53-
- activitySenderHasPermission:
54-
permission: admin
55-
- closePullRequest
6+
resourceManagementConfiguration:
7+
eventResponderTasks:
8+
- description: Close PRs that modify files whose "source of truth" is not in this repo.
9+
if:
10+
- payloadType: Pull_Request
11+
- isAction:
12+
action: Opened
13+
- or:
14+
- includesModifiedFiles:
15+
files:
16+
- xml/Microsoft.Extensions*/*
17+
excludedFiles:
18+
# These files use this repo as source-of-truth.
19+
- xml/Microsoft.Extensions.FileSystemGlobbing/*
20+
- xml/Microsoft.Extensions.FileSystemGlobbing.Abstractions/*
21+
- xml/Microsoft.Extensions.FileSystemGlobbing.Internal*/*
22+
- includesModifiedFiles:
23+
files:
24+
- xml/System.Composition/*
25+
- includesModifiedFiles:
26+
files:
27+
- xml/System.Formats.Cbor/*
28+
- includesModifiedFiles:
29+
files:
30+
- xml/System.Formats.Nrbf/*
31+
- includesModifiedFiles:
32+
files:
33+
- xml/System.Net.ServerSentEvents/*
34+
- includesModifiedFiles:
35+
files:
36+
- xml/System.Numerics.Tensors/*
37+
- includesModifiedFiles:
38+
files:
39+
- xml/System.Speech/*
40+
- includesModifiedFile:
41+
file: xml/System.Runtime.Serialization/ISerializationCodeDomSurrogateProvider.xml
42+
- includesModifiedFile:
43+
file: xml/System.Runtime.Serialization/ImportOptions.xml
44+
- includesModifiedFile:
45+
file: xml/System.Runtime.Serialization/XsdDataContractExporter.xml
46+
then:
47+
- addReply:
48+
reply: >-
49+
@${issueAuthor} - This PR edits files whose 'source of truth' for documentation is not in this repo. If you're editing the documentation, please make these updates in the /// comments in the source repo (either dotnet/runtime or dotnet/extensions) instead.
50+
- if:
51+
- or:
52+
- activitySenderHasPermission:
53+
permission: None
54+
- activitySenderHasPermission:
55+
permission: Read
56+
then:
57+
- closePullRequest

0 commit comments

Comments
 (0)