Skip to content

Commit 39bc191

Browse files
authoredOct 10, 2024
use matchAny (dotnet#10544)
1 parent 06e50eb commit 39bc191

File tree

1 file changed

+46
-154
lines changed

1 file changed

+46
-154
lines changed
 

‎.github/policies/disallow-edits.yml

+46-154
Original file line numberDiff line numberDiff line change
@@ -10,158 +10,50 @@ configuration:
1010
- payloadType: Pull_Request
1111
- isAction:
1212
action: Opened
13+
- or:
14+
- filesMatchPattern:
15+
pattern: xml/Microsoft.Extensions*/*
16+
matchAny: true
17+
excludedFiles:
18+
- xml/Microsoft.Extensions.FileSystemGlobbing/*
19+
- xml/Microsoft.Extensions.FileSystemGlobbing.Abstractions/*
20+
- xml/Microsoft.Extensions.FileSystemGlobbing.Internal*/*
21+
- filesMatchPattern:
22+
matchAny: true
23+
pattern: xml/System.Composition/*
24+
- filesMatchPattern:
25+
matchAny: true
26+
pattern: xml/System.Formats.Cbor/*
27+
- filesMatchPattern:
28+
matchAny: true
29+
pattern: xml/System.Formats.Nrbf/*
30+
- filesMatchPattern:
31+
matchAny: true
32+
pattern: xml/System.Net.ServerSentEvents/*
33+
- filesMatchPattern:
34+
matchAny: true
35+
pattern: xml/System.Numerics.Tensors/*
36+
- filesMatchPattern:
37+
matchAny: true
38+
pattern: xml/System.Speech/*
39+
- filesMatchPattern:
40+
matchAny: true
41+
pattern: xml/System.Runtime.Serialization/ISerializationCodeDomSurrogateProvider.xml
42+
- filesMatchPattern:
43+
matchAny: true
44+
pattern: xml/System.Runtime.Serialization/ImportOptions.xml
45+
- filesMatchPattern:
46+
matchAny: true
47+
pattern: xml/System.Runtime.Serialization/XsdDataContractExporter.xml
1348
then:
14-
- if:
15-
- includesModifiedFile:
16-
file: xml/Microsoft.Extensions*/*
17-
# TODO - These files do use this repo as source-of-truth - how to exclude them?
18-
# - xml/Microsoft.Extensions.FileSystemGlobbing/*
19-
# - xml/Microsoft.Extensions.FileSystemGlobbing.Abstractions/*
20-
# - xml/Microsoft.Extensions.FileSystemGlobbing.Internal*/*
21-
then:
22-
- addReply:
23-
reply: >-
24-
@${issueAuthor} - This PR edits one or more files whose 'source of truth' for documentation is not in this repo. Please make documentation updates for 'Microsoft.Extensions' in the /// comments in the dotnet/runtime or dotnet/extensions repo instead.
25-
- if:
26-
- or:
27-
- activitySenderHasPermission:
28-
permission: None
29-
- activitySenderHasPermission:
30-
permission: Read
31-
then:
32-
- closePullRequest
33-
- if:
34-
- includesModifiedFile:
35-
file: xml/System.Composition/*
36-
then:
37-
- addReply:
38-
reply: >-
39-
@${issueAuthor} - This PR edits one or more files whose 'source of truth' for documentation is not in this repo. Please make documentation updates for 'System.Composition' in the /// comments in the dotnet/runtime repo instead.
40-
- if:
41-
- or:
42-
- activitySenderHasPermission:
43-
permission: None
44-
- activitySenderHasPermission:
45-
permission: Read
46-
then:
47-
- closePullRequest
48-
- if:
49-
- includesModifiedFile:
50-
file: xml/System.Formats.Cbor/*
51-
then:
52-
- addReply:
53-
reply: >-
54-
@${issueAuthor} - This PR edits one or more files whose 'source of truth' for documentation is not in this repo. Please make documentation updates for 'System.Formats.Cbor' in the /// comments in the dotnet/runtime repo instead.
55-
- if:
56-
- or:
57-
- activitySenderHasPermission:
58-
permission: None
59-
- activitySenderHasPermission:
60-
permission: Read
61-
then:
62-
- closePullRequest
63-
- if:
64-
- includesModifiedFile:
65-
file: xml/System.Formats.Nrbf/*
66-
then:
67-
- addReply:
68-
reply: >-
69-
@${issueAuthor} - This PR edits one or more files whose 'source of truth' for documentation is not in this repo. Please make documentation updates for 'System.Formats.Nrbf' in the /// comments in the dotnet/runtime repo instead.
70-
- if:
71-
- or:
72-
- activitySenderHasPermission:
73-
permission: None
74-
- activitySenderHasPermission:
75-
permission: Read
76-
then:
77-
- closePullRequest
78-
- if:
79-
- includesModifiedFile:
80-
file: xml/System.Net.ServerSentEvents/*
81-
then:
82-
- addReply:
83-
reply: >-
84-
@${issueAuthor} - This PR edits one or more files whose 'source of truth' for documentation is not in this repo. Please make documentation updates for 'System.Net.ServerSentEvents' in the /// comments in the dotnet/runtime repo instead.
85-
- if:
86-
- or:
87-
- activitySenderHasPermission:
88-
permission: None
89-
- activitySenderHasPermission:
90-
permission: Read
91-
then:
92-
- closePullRequest
93-
- if:
94-
- includesModifiedFile:
95-
file: xml/System.Numerics.Tensors/*
96-
then:
97-
- addReply:
98-
reply: >-
99-
@${issueAuthor} - This PR edits one or more files whose 'source of truth' for documentation is not in this repo. Please make documentation updates for 'System.Numerics.Tensors' in the /// comments in the dotnet/runtime repo instead.
100-
- if:
101-
- or:
102-
- activitySenderHasPermission:
103-
permission: None
104-
- activitySenderHasPermission:
105-
permission: Read
106-
then:
107-
- closePullRequest
108-
- if:
109-
- includesModifiedFile:
110-
file: xml/System.Speech/*
111-
then:
112-
- addReply:
113-
reply: >-
114-
@${issueAuthor} - This PR edits one or more files whose 'source of truth' for documentation is not in this repo. Please make documentation updates for 'System.Speech' in the /// comments in the dotnet/runtime repo instead.
115-
- if:
116-
- or:
117-
- activitySenderHasPermission:
118-
permission: None
119-
- activitySenderHasPermission:
120-
permission: Read
121-
then:
122-
- closePullRequest
123-
- if:
124-
- includesModifiedFile:
125-
file: xml/System.Runtime.Serialization/ISerializationCodeDomSurrogateProvider.xml
126-
then:
127-
- addReply:
128-
reply: >-
129-
@${issueAuthor} - This PR edits one or more files whose 'source of truth' for documentation is not in this repo. Please make documentation updates for 'ISerializationCodeDomSurrogateProvider' in the /// comments in the dotnet/runtime repo instead.
130-
- if:
131-
- or:
132-
- activitySenderHasPermission:
133-
permission: None
134-
- activitySenderHasPermission:
135-
permission: Read
136-
then:
137-
- closePullRequest
138-
- if:
139-
- includesModifiedFile:
140-
file: xml/System.Runtime.Serialization/ImportOptions.xml
141-
then:
142-
- addReply:
143-
reply: >-
144-
@${issueAuthor} - This PR edits one or more files whose 'source of truth' for documentation is not in this repo. Please make documentation updates for 'ImportOptions' in the /// comments in the dotnet/runtime repo instead.
145-
- if:
146-
- or:
147-
- activitySenderHasPermission:
148-
permission: None
149-
- activitySenderHasPermission:
150-
permission: Read
151-
then:
152-
- closePullRequest
153-
- if:
154-
- includesModifiedFile:
155-
file: xml/System.Runtime.Serialization/XsdDataContractExporter.xml
156-
then:
157-
- addReply:
158-
reply: >-
159-
@${issueAuthor} - This PR edits one or more files whose 'source of truth' for documentation is not in this repo. Please make documentation updates for 'XsdDataContractExporter' in the /// comments in the dotnet/runtime repo instead.
160-
- if:
161-
- or:
162-
- activitySenderHasPermission:
163-
permission: None
164-
- activitySenderHasPermission:
165-
permission: Read
166-
then:
167-
- closePullRequest
49+
- addReply:
50+
reply: >-
51+
@${issueAuthor} - This PR edits one or more files whose 'source of truth' for documentation is not in this repo. Please make documentation updates in the /// comments in the dotnet/runtime repo (or dotnet/extensions repo) instead.
52+
- if:
53+
- or:
54+
- activitySenderHasPermission:
55+
permission: None
56+
- activitySenderHasPermission:
57+
permission: Read
58+
then:
59+
- closePullRequest

0 commit comments

Comments
 (0)
Please sign in to comment.