Skip to content

Commit 9175229

Browse files
authored
move if/then to action section (#10537)
1 parent 5b8fdc3 commit 9175229

File tree

1 file changed

+130
-12
lines changed

1 file changed

+130
-12
lines changed

.github/policies/disallow-edits.yml

Lines changed: 130 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,40 +10,158 @@ configuration:
1010
- payloadType: Pull_Request
1111
- isAction:
1212
action: Opened
13-
- or:
13+
then:
14+
- if:
1415
- includesModifiedFile:
1516
file: xml/Microsoft.Extensions*/*
1617
# TODO - These files do use this repo as source-of-truth - how to exclude them?
1718
# - xml/Microsoft.Extensions.FileSystemGlobbing/*
1819
# - xml/Microsoft.Extensions.FileSystemGlobbing.Abstractions/*
1920
# - 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:
2034
- includesModifiedFile:
2135
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:
2249
- includesModifiedFile:
2350
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:
2464
- includesModifiedFile:
2565
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:
2679
- includesModifiedFile:
2780
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:
2894
- includesModifiedFile:
2995
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:
30109
- includesModifiedFile:
31110
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:
32124
- includesModifiedFile:
33125
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:
34139
- includesModifiedFile:
35140
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:
36154
- includesModifiedFile:
37155
file: xml/System.Runtime.Serialization/XsdDataContractExporter.xml
38-
then:
39-
- addReply:
40-
reply: >-
41-
@${issueAuthor} - This PR edits one or more files whose 'source of truth' for documentation is not in this repo. To see which files are affected, look in the .github/policies/disallow-edits.yml file. Please make documentation updates for these assemblies in the /// comments in the source repo (either dotnet/runtime or dotnet/extensions) instead.
42-
- if:
43-
- or:
44-
- activitySenderHasPermission:
45-
permission: None
46-
- activitySenderHasPermission:
47-
permission: Read
48156
then:
49-
- closePullRequest
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

0 commit comments

Comments
 (0)