diff --git a/.github/policies/disallow-edits.yml b/.github/policies/disallow-edits.yml index 0473617aeae1e..9dd03c2e659d5 100644 --- a/.github/policies/disallow-edits.yml +++ b/.github/policies/disallow-edits.yml @@ -48,14 +48,15 @@ configuration: - 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 + - if: + - or: + - activitySenderHasPermission: + permission: None + - activitySenderHasPermission: + permission: Read + then: + - closePullRequest