Skip to content

Commit bd363bb

Browse files
authored
try to fix policy (#10448)
1 parent 6da85a8 commit bd363bb

File tree

1 file changed

+46
-36
lines changed

1 file changed

+46
-36
lines changed

.github/policies/disallow-edits.yml

Lines changed: 46 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -3,39 +3,49 @@ 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-
- isAction:
12-
action: Opened
13-
- or:
14-
- filesMatchPattern:
15-
pattern: xml/Microsoft.Extensions*/*.xml
16-
excludedFiles: # These files use this repo as source-of-truth.
17-
- xml/Microsoft.Extensions.FileSystemGlobbing/*.xml
18-
- xml/Microsoft.Extensions.FileSystemGlobbing.Abstractions/*.xml
19-
- xml/Microsoft.Extensions.FileSystemGlobbing.Internal*/*.xml
20-
- filesMatchPattern:
21-
pattern: xml/System.Composition/*.xml
22-
- filesMatchPattern:
23-
pattern: xml/System.Formats.Cbor/*.xml
24-
- filesMatchPattern:
25-
pattern: xml/System.Formats.Nrbf/*.xml
26-
- filesMatchPattern:
27-
pattern: xml/System.Net.ServerSentEvents/*.xml
28-
- filesMatchPattern:
29-
pattern: xml/System.Numerics.Tensors/*.xml
30-
- filesMatchPattern:
31-
pattern: xml/System.Speech/*.xml
32-
- includesModifiedFile:
33-
file: xml/System.Runtime.Serialization/ISerializationCodeDomSurrogateProvider.xml
34-
- includesModifiedFile:
35-
file: xml/System.Runtime.Serialization/ImportOptions.xml
36-
- includesModifiedFile:
37-
file: xml/System.Runtime.Serialization/XsdDataContractExporter.xml
38-
then:
39-
- addReply:
40-
reply: "@${issueAuthor} This PR will be closed because it edits files whose 'source of truth' is not in the repo."
41-
- 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+
Hello @${issueAuthor},
50+
51+
This PR will be closed because it edits files whose 'source of truth' is not in the repo.

0 commit comments

Comments
 (0)