forked from dotnet/dotnet-api-docs
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdisallow-edits.yml
65 lines (64 loc) · 2.8 KB
/
disallow-edits.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: GitOps.PullRequestIssueManagement
description: GitOps.PullRequestIssueManagement primitive
resource: repository
configuration:
resourceManagementConfiguration:
eventResponderTasks:
- description: Close PRs that modify files whose "source of truth" is not in this repo.
if:
- payloadType: Pull_Request
- isAction:
action: Opened
- or:
- filesMatchPattern:
pattern: xml/Microsoft.Extensions*/*
matchAny: true
excludedFiles:
- xml/Microsoft.Extensions.FileSystemGlobbing/*
- xml/Microsoft.Extensions.FileSystemGlobbing.Abstractions/*
- xml/Microsoft.Extensions.FileSystemGlobbing.Internal*/*
- filesMatchPattern:
matchAny: true
pattern: xml/System.Composition/*
- filesMatchPattern:
matchAny: true
pattern: xml/System.Diagnostics.EventLog.Messages/*
- filesMatchPattern:
matchAny: true
pattern: xml/System.Formats.Asn1/*
- filesMatchPattern:
matchAny: true
pattern: xml/System.Formats.Cbor/*
- filesMatchPattern:
matchAny: true
pattern: xml/System.Formats.Nrbf/*
- filesMatchPattern:
matchAny: true
pattern: xml/System.Net.ServerSentEvents/*
- filesMatchPattern:
matchAny: true
pattern: xml/System.Numerics.Tensors/*
- filesMatchPattern:
matchAny: true
pattern: xml/System.Runtime.Serialization.Schema/*
- filesMatchPattern:
matchAny: true
pattern: xml/System.Runtime.Serialization/ISerializationCodeDomSurrogateProvider.xml
- filesMatchPattern:
matchAny: true
pattern: xml/System.Runtime.Serialization/ImportOptions.xml
- filesMatchPattern:
matchAny: true
pattern: xml/System.Runtime.Serialization/XsdDataContractExporter.xml
then:
- addReply:
reply: >-
@${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.
- if:
- or:
- activitySenderHasPermission:
permission: None
- activitySenderHasPermission:
permission: Read
then:
- closePullRequest