Skip to content

Commit 51c74be

Browse files
authored
Merge pull request #3837 from gewarren/responsible-ai-policies
Add policies for responsible-ai folder
2 parents 2fff716 + b213e45 commit 51c74be

File tree

1 file changed

+60
-4
lines changed

1 file changed

+60
-4
lines changed

.github/policies/disallow-edits.yml

Lines changed: 60 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,18 @@ configuration:
1919
@${issueAuthor} - You tried to add an index file to this repository; this is not permitted so your pull request will be closed automatically.
2020
- closePullRequest
2121

22-
- description: Close PRs to the "ai-services/personalizer" folder where the author isn't a member of the MicrosoftDocs org (i.e. PRs in public repo).
22+
- description: Close PRs to the "ai-services/personalizer" and "ai-services/responsible-ai" folders where the author isn't a member of the MicrosoftDocs org (i.e. PRs in public repo).
2323
if:
2424
- payloadType: Pull_Request
2525
- isAction:
2626
action: Opened
27-
- filesMatchPattern:
28-
matchAny: true
29-
pattern: articles/ai-services/personalizer/*
27+
- or:
28+
- filesMatchPattern:
29+
matchAny: true
30+
pattern: articles/ai-services/personalizer/*
31+
- filesMatchPattern:
32+
matchAny: true
33+
pattern: articles/ai-services/responsible-ai/*
3034
- not:
3135
activitySenderHasAssociation:
3236
association: Member
@@ -65,3 +69,55 @@ configuration:
6569
- mrbullwinkle
6670
replyTemplate: ${mentionees} - Please review this PR and sign off when you're ready to merge it.
6771
assignMentionees: True # This part probably won't work since the bot doesn't have write perms.
72+
- addLabel:
73+
label: needs-human-review
74+
75+
- description: \@mention specific people when a PR is opened in the "ai-services/responsible-ai" folder.
76+
if:
77+
- payloadType: Pull_Request
78+
- isAction:
79+
action: Opened
80+
- filesMatchPattern:
81+
matchAny: true
82+
pattern: articles/ai-services/responsible-ai/*
83+
- activitySenderHasAssociation:
84+
association: Member
85+
- not:
86+
or:
87+
- isActivitySender:
88+
user: eric-urban
89+
- isActivitySender:
90+
user: nitinme
91+
- isActivitySender:
92+
user: mrbullwinkle
93+
- isActivitySender:
94+
user: aahill
95+
- isActivitySender:
96+
user: laujan
97+
- isActivitySender:
98+
user: patrickfarley
99+
- isActivitySender:
100+
user: jboback
101+
- isActivitySender:
102+
user: heidisteen
103+
- isActivitySender:
104+
user: haileytap
105+
then:
106+
- addReply:
107+
reply: >-
108+
@${issueAuthor} - Please don't sign off on this PR. The area owners will sign off once they've reviewed your contribution.
109+
- mentionUsers:
110+
mentionees:
111+
- eric-urban
112+
- nitinme
113+
- mrbullwinkle
114+
- aahill
115+
- laujan
116+
- patrickfarley
117+
- jboback
118+
- heidisteen
119+
- haileytap
120+
replyTemplate: ${mentionees} - Please review this PR and sign off when you're ready to merge it.
121+
assignMentionees: True # This part probably won't work since the bot doesn't have write perms.
122+
- addLabel:
123+
label: needs-human-review

0 commit comments

Comments
 (0)