Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/policies/prs.external-reviewers.generated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ configuration:
- not:
hasLabel:
label: emitter:graphql
- not: isDraft
then:
- addReply:
reply: "@fionabronwen @swatkatz @steverice — this PR modifies files in the
Expand Down
2 changes: 1 addition & 1 deletion eng/common/scripts/labels/automation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ function createExternalReviewersConfig(config: RepoConfig): PolicyServiceConfig
// on every subsequent push (the prs.triage policy also adds it, but adding
// it here guarantees the guard is set even if that policy hasn't run yet).
return {
if: [includesModifiedFiles(globs), not(hasLabel(area))],
if: [includesModifiedFiles(globs), not(hasLabel(area)), not("isDraft")],
then: [
addReply(
`${mentions} — this PR modifies files in the \`${area}\` area, which your team owns. Please take a look. (You can't be added as a formal reviewer because you're not a repository collaborator, so this is a heads-up instead.)`,
Expand Down
3 changes: 2 additions & 1 deletion eng/common/scripts/labels/policy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ export type Condition =
| And
| Not
| "isAssignedToSomeone"
| "isOpen";
| "isOpen"
| "isDraft";

export function payloadType(payloadType: PayloadType["payloadType"]): PayloadType {
return {
Expand Down
Loading