Skip to content

Commit 132153d

Browse files
authored
Fix all file paths - some are already working (#10453)
1 parent 2843e6a commit 132153d

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

.github/policies/disallow-edits.yml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ configuration:
88
- description: Close PRs that modify files whose "source of truth" is not in this repo.
99
if:
1010
- payloadType: Pull_Request
11-
- isAction:
12-
action: Opened
1311
- or:
1412
- includesModifiedFiles:
1513
files:
@@ -21,22 +19,22 @@ configuration:
2119
- xml/Microsoft.Extensions.FileSystemGlobbing.Internal*/*
2220
- includesModifiedFiles:
2321
files:
24-
- xml/System.Composition
22+
- xml/System.Composition/*
2523
- includesModifiedFiles:
2624
files:
27-
- xml/System.Formats.Cbor
25+
- xml/System.Formats.Cbor/*
2826
- includesModifiedFiles:
2927
files:
30-
- xml/System.Formats.Nrbf
28+
- xml/System.Formats.Nrbf/*
3129
- includesModifiedFiles:
3230
files:
33-
- xml/System.Net.ServerSentEvents
31+
- xml/System.Net.ServerSentEvents/*
3432
- includesModifiedFiles:
3533
files:
36-
- xml/System.Numerics.Tensors
34+
- xml/System.Numerics.Tensors/*
3735
- includesModifiedFiles:
3836
files:
39-
- xml/System.Speech
37+
- xml/System.Speech/*
4038
- includesModifiedFile:
4139
file: xml/System.Runtime.Serialization/ISerializationCodeDomSurrogateProvider.xml
4240
- includesModifiedFile:
@@ -46,6 +44,12 @@ configuration:
4644
then:
4745
- addReply:
4846
reply: >-
49-
Hello @${issueAuthor},
50-
51-
This PR will be closed because it edits files whose 'source of truth' is not in the repo.
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

0 commit comments

Comments
 (0)