Skip to content

Commit ef680a4

Browse files
authored
disallow edits to design guidelines (#43364)
1 parent 2f080c6 commit ef680a4

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

.github/policies/policy-edits.yml renamed to .github/policies/disallow-edits.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ where:
88
configuration:
99
resourceManagementConfiguration:
1010
eventResponderTasks:
11-
- description: Flag PRs that change .github folder files.
11+
- description: Close PRs that change .github folder files.
1212
triggerOnOwnActions: true
1313
if:
1414
- payloadType: Pull_Request
@@ -38,3 +38,24 @@ configuration:
3838
reply: >-
3939
@${issueAuthor} - This PR edits a file in the .github folder, which is not allowed. CC @dotnet/docs.
4040
- closePullRequest
41+
42+
- description: Close PRs that change Framework Design Guidelines.
43+
triggerOnOwnActions: true
44+
if:
45+
- payloadType: Pull_Request
46+
- isAction:
47+
action: Opened
48+
- filesMatchPattern:
49+
pattern: docs/standard/design-guidelines/*
50+
matchAny: true
51+
- not:
52+
or:
53+
- activitySenderHasPermission:
54+
permission: admin
55+
- activitySenderHasPermission:
56+
permission: write
57+
then:
58+
- addReply:
59+
reply: >-
60+
@${issueAuthor} - This PR edits a file in the design-guidelines folder, which is disallowed. This content is reprinted by permission of Pearson Education, Inc. from Framework Design Guidelines: Conventions, Idioms, and Patterns for Reusable .NET Libraries, 2nd Edition, and cannot be edited. CC @dotnet/docs.
61+
- closePullRequest

0 commit comments

Comments
 (0)