Skip to content

Commit ebbed07

Browse files
committed
try again
1 parent 29fe2a0 commit ebbed07

File tree

1 file changed

+52
-53
lines changed

1 file changed

+52
-53
lines changed

.github/policies/disallow-edits.yml

Lines changed: 52 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -3,56 +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-
- 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-
- not:
52-
- or:
53-
- activitySenderHasPermission:
54-
permission: Write
55-
- activitySenderHasPermission:
56-
permission: Admin
57-
then:
58-
- 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)