-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Expand file tree
/
Copy pathdisallow-edits.yml
More file actions
84 lines (83 loc) · 3.52 KB
/
Copy pathdisallow-edits.yml
File metadata and controls
84 lines (83 loc) · 3.52 KB
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
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
- targetsBranch:
branch: main
- or:
- filesMatchPattern:
pattern: xml/Microsoft.Extensions*/*
matchAny: true
excludedFiles:
- xml/Microsoft.Extensions.FileSystemGlobbing/*
- xml/Microsoft.Extensions.FileSystemGlobbing.*/*
- filesMatchPattern:
matchAny: true
pattern: xml/System.CommandLine*/*
- filesMatchPattern:
matchAny: true
pattern: xml/System.Composition*/*
- filesMatchPattern:
matchAny: true
pattern: xml/System.Diagnostics/FileVersionInfo.xml
- 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.Linq/AsyncEnumerable.xml
- filesMatchPattern:
matchAny: true
pattern: xml/System.Linq/IOrderedAsyncEnumerable`1.xml
- filesMatchPattern:
matchAny: true
pattern: xml/System.Net.ServerSentEvents/*
- filesMatchPattern:
matchAny: true
pattern: xml/System.Net/WebProxy.xml
- filesMatchPattern:
matchAny: true
pattern: xml/System.Numerics.Tensors/*
- filesMatchPattern:
matchAny: true
pattern: xml/System.Reflection.Context/*
- filesMatchPattern:
matchAny: true
pattern: xml/System.Reflection/DispatchProxy.xml
- 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
- filesMatchPattern:
matchAny: true
pattern: xml/System.Text.RegularExpressions/*
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