You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/policies/disallow-edits.yml
+31-8Lines changed: 31 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -124,24 +124,21 @@ configuration:
124
124
125
125
- description: Alert authors to edits in the /articles/reliability folder.
126
126
if:
127
-
# If a PR in the articles/reliability folder was opened or had the ready-to-merge label added, and the PR author isn't Anastasia or John...
127
+
# If a PR in the articles/reliability folder is opened, and the PR author isn't Anastasia or John...
128
128
- payloadType: Pull_Request
129
-
- or:
130
-
- isAction:
131
-
action: Opened
132
-
- labelAdded:
133
-
label: ready-to-merge
134
129
- filesMatchPattern:
135
130
matchAny: true
136
131
pattern: articles/reliability/*
132
+
- isAction:
133
+
action: Opened
137
134
- not:
138
135
or:
139
136
- isActivitySender:
140
137
user: anaharris-ms
141
138
- isActivitySender:
142
139
user: johndowns
143
140
then:
144
-
#Add the needs-human-review label, remove the ready-to-merge label (if necessary), mention Anastasia and John, and add a reply asking the PR author not to sign off on the PR.
141
+
#Mention Anastasia and John, add a reply asking the PR author not to sign off on the PR, and add the needs-human-review label.
145
142
- mentionUsers:
146
143
mentionees:
147
144
- anaharris-ms
@@ -150,9 +147,35 @@ configuration:
150
147
Tagging authors for this folder: ${mentionees}
151
148
- addReply:
152
149
reply: >-
153
-
@${issueAuthor} - Please do NOT sign off on this pull request. The article author will sign off for you.
150
+
@${issueAuthor} - Please do NOT sign off on this pull request. The Reliability Hub owners will sign off for you.
154
151
- addLabel:
155
152
label: needs-human-review
153
+
154
+
- description: Disallow sign-off for articles in the /articles/reliability folder.
155
+
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
+
- isPullRequest
159
+
- filesMatchPattern:
160
+
matchAny: true
161
+
pattern: articles/reliability/*
162
+
- commentContains:
163
+
pattern: \#sign-off
164
+
isRegex: false
165
+
- not:
166
+
or:
167
+
- isActivitySender:
168
+
user: anaharris-ms
169
+
- isActivitySender:
170
+
user: johndowns
171
+
then:
172
+
# Add the do-not-merge label, remove the ready-to-merge label, and add a reply asking the PR author not to sign off on the PR.
173
+
- mentionUsers:
174
+
- addReply:
175
+
reply: >-
176
+
@${issueAuthor} - Please do NOT sign off on this pull request. The Reliability Hub owners will sign off for you.
0 commit comments