Skip to content

Commit a729992

Browse files
authored
Update sign-off comment pattern in policy
1 parent 6121e34 commit a729992

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/policies/disallow-edits.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,13 +155,16 @@ configuration:
155155
if:
156156
# If a 'sign-off' comment is added to a PR in the articles/reliability folder , and the PR author isn't Anastasia or John...
157157
- payloadType: Issue_Comment
158-
- isPullRequest
159158
- filesMatchPattern:
160159
matchAny: true
161160
pattern: articles/reliability/*
162-
- commentContains:
163-
pattern: 'sign-off'
164-
isRegex: true
161+
- or:
162+
- commentContains:
163+
pattern: ^(#sign-off)$
164+
isRegex: True
165+
- commentContains:
166+
pattern: ^(\#sign-off)$
167+
isRegex: True
165168
- not:
166169
or:
167170
- isActivitySender:

0 commit comments

Comments
 (0)