Skip to content

Commit 367e80f

Browse files
authored
Merge pull request #295890 from gewarren/patch-17
Use `isAssignedToUser` for PR comments
2 parents cac9dfd + 34e8801 commit 367e80f

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

.github/policies/disallow-edits.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -153,18 +153,19 @@ configuration:
153153

154154
- description: Disallow sign-off for articles in the /articles/reliability folder.
155155
if:
156-
# If a 'sign-off' comment is added to a PR in the articles/reliability folder , and the PR author isn't Anastasia or John...
157-
- payloadType: Issue_Comment
158-
- filesMatchPattern:
159-
matchAny: true
160-
pattern: articles/reliability/*
156+
# If a 'sign-off' comment is added to a PR that's assigned to anaharris-ms, and the PR author isn't Anastasia or John...
161157
- or:
162-
- commentContains:
163-
pattern: ^(#sign-off)$
164-
isRegex: True
165-
- commentContains:
166-
pattern: ^(\#sign-off)$
167-
isRegex: True
158+
- payloadType: Issue_Comment
159+
- payloadType: Pull_Request_Review_Comment
160+
- isAction:
161+
action: Created
162+
- isActivitySender:
163+
issueAuthor: True
164+
- isAssignedToUser:
165+
user: anaharris-ms
166+
- commentContains:
167+
pattern: '#sign-off'
168+
isRegex: False
168169
- not:
169170
or:
170171
- isActivitySender:

0 commit comments

Comments
 (0)