Repository navigation
Add AI-assisted Meta import risk triage for pull requests - #60289
Merged
Merged
Conversation
cortinico
marked this pull request as ready for review
November 25, 2026 16:51
cipolleschi
reviewed
Nov 25, 2026
cipolleschi
approved these changes
Nov 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary:
Add a trusted-base pull_request_target workflow that labels new or updated PRs requiring a Meta import. Dependency manifests/lockfiles or an existing high-risk label force review. A tool-free Muse Spark pass assesses the actual patch for other risks: native React Native core, Yoga and Hermes changes are not labeled just for touching those directories. A typo or comment-only native change can remain low risk, while a behavioral change can be escalated. Ordinary JavaScript, Markdown and workflow-only changes are normally low risk but can also be escalated when their diff warrants it.
The read-only classification job uses the existing EXPO_CODE_REVIEW_API_KEY repository secret as a Meta Model API credential. A separate job with issues:write applies Meta Review Required and creates that label on first use. If the AI cannot cover the whole diff or returns an invalid response, the check fails and the label is applied conservatively. Labels already applied are retained after later PR updates.
Changelog:
[INTERNAL] [ADDED] - Add AI-assisted Meta import risk triage for pull requests.
Test Plan:
npx --yes jest@29.7.0 --config '{"transform":{},"testEnvironment":"node","testRegex":"metaImportRisk-test.js$","modulePathIgnorePatterns":["/scripts/releases/__tests__/__fixtures__/"]}' --runInBand .github/workflow-scripts/__tests__/metaImportRisk-test.js— 14 tests passed.npx --yes prettier@3.10.0 --check .github/workflows/meta-import-risk.yml .github/workflow-scripts/metaImportRisk.js .github/workflow-scripts/__tests__/metaImportRisk-test.js— passed.ruby -e "require 'yaml'; YAML.load_file('.github/workflows/meta-import-risk.yml'); puts 'YAML valid'"— passed.git diff --check— passed.yarn testbecause repository dependencies are not installed in this checkout. Live Muse/GitHub Actions validation requires the workflow to be on the base branch and access to the configured secret.