Repository navigation
Conversation
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
|
There was a problem hiding this comment.
🟡 Changes recommended
Remaining issue reporters can create repository issues outside the documented triggering-PR-only mutation boundary and must be disabled in the authored workflow before regenerating the lock file.
1 open issue
What changed in this PR
Adds advisory PR classification to Primer React’s automation, helping reviewers identify affected areas and understand consumer-facing risk without executing PR code.
Changes:
- Adds deterministic, overlapping area labels with rename handling and stale-label cleanup.
- Adds a trusted-actor Copilot workflow for public-package risk labels and source-backed before/after comparisons.
- Documents operation and safety boundaries, and adds nine area-label tests to CI.
| File | Description |
|---|---|
contributor-docs/pr-classification.md |
Documents classification, risk levels, safety, and maintenance. |
.github/workflows/pr-public-impact.md |
Defines assessment rules, actor restrictions, and safe outputs. |
.github/workflows/pr-public-impact.lock.yml |
Adds the compiled assessment workflow. |
.github/workflows/pr-area-labels.yml |
Applies path-based labels while preserving unrelated labels. |
.github/workflows/ci.yml |
Runs area-label tests in CI. |
.github/scripts/pr-area-labels.test.mjs |
Tests mappings, cleanup, freshness checks, and API failures. |
Review effort: Balanced
| report-incomplete: | ||
| create-issue: false | ||
| threat-detection: | ||
| report-as-issue: false |
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>

Add advisory PR classification: deterministic area labels and a Copilot agentic workflow that assigns public-package risk and explains consumer-facing before/after changes. Both refresh on PR updates, preserve unrelated labels, and avoid executing PR code in privileged jobs.
Area labeling supports forks. AI assessment uses trusted-actor
pull_request_targetactivation (admin, maintainer, or write), organization-billed Copilot inference, a read-only GitHub proxy, and constrained safe outputs. Outside-contributor events do not launch the agent; a trusted maintainer can reopen or mark the PR ready for review. Comparisons use commit-pinned source evidence and may reuse verified existing images; this first version does not generate screenshots or claim rendered visual validation. Superseded comments are hidden, and internal-only changes remain quiet.Changelog
New
PR area labels: overlappingarea:labels for React, docs, CI, Storybook, MCP, and other workspaces/tooling; stale-label cleanup, rename handling, and explicit incomplete-file failures.PR public impact: exactly onerisk: high|medium|low|nonelabel, consumer-impact comparisons for public changes, and Actions-only incomplete reporting.Changed
Removed
Rollout strategy
skip changeset.Testing & Reviewing
Review the trusted-actor gate and risk rubric, especially the distinction between internal-only changes, optional API additions, and shared-behavior changes. After merging, exercise those cases and a follow-up commit that removes the public change: labels should refresh, unrelated labels should survive, and obsolete comparisons should be hidden.