Skip to content

chore: skip external reviewer pings on draft PRs#11385

Draft
timotheeguerin with Copilot wants to merge 1 commit into
mainfrom
copilot/update-external-notifier-script
Draft

chore: skip external reviewer pings on draft PRs#11385
timotheeguerin with Copilot wants to merge 1 commit into
mainfrom
copilot/update-external-notifier-script

Conversation

Copilot AI commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

External area owners were being pinged on draft PRs, where reviews aren't expected yet.

Changes

  • eng/common/scripts/labels/policy.ts — adds "isDraft" to the Condition union type
  • eng/common/scripts/labels/automation.ts — adds not("isDraft") to the inner condition in createExternalReviewersConfig so the notify-and-label action only fires on non-draft PRs
  • .github/policies/prs.external-reviewers.generated.yml — regenerated; emits - not: isDraft in the policy condition

Co-authored-by: timotheeguerin <1031227+timotheeguerin@users.noreply.github.com>
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
1 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants