Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ where:
configuration:
resourceManagementConfiguration:
eventResponderTasks:
- description: Flag PRs that change .github folder files.
- description: Close PRs that change .github folder files.
triggerOnOwnActions: true
if:
- payloadType: Pull_Request
Expand Down Expand Up @@ -38,3 +38,24 @@ configuration:
reply: >-
@${issueAuthor} - This PR edits a file in the .github folder, which is not allowed. CC @dotnet/docs.
- closePullRequest

- description: Close PRs that change Framework Design Guidelines.
triggerOnOwnActions: true
if:
- payloadType: Pull_Request
- isAction:
action: Opened
- filesMatchPattern:
pattern: docs/standard/design-guidelines/*
matchAny: true
- not:
or:
- activitySenderHasPermission:
permission: admin
- activitySenderHasPermission:
permission: write
then:
- addReply:
reply: >-
@${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.
- closePullRequest
Loading