Skip to content

feat(core): DiffViewer moves to Core #20080

feat(core): DiffViewer moves to Core

feat(core): DiffViewer moves to Core #20080

# Copyright (c) Meta Platforms, Inc. and affiliates.
name: Internal Registry
# Verifies every pinned dependency is available from the registry before it can
# break a build. Temporarily advisory: the check still runs and surfaces
# annotations, but a failure no longer fails the job (continue-on-error), so it
# warns instead of blocking. The pull_request trigger is path-filtered
# (spec:AST-030 FR14), so this check never starts on a pull request that
# touches no dependency file: never make it a required status check as it
# stands. Re-enabling gating means removing continue-on-error and the path
# filter, so the workflow reports on every pull request and skips its work
# inside the job when no dependency changed.
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
branches: ['main']
# Runs only when a dependency declaration or the lockfile can change what
# the registry must serve (spec:AST-030 FR14). A merge-group entry, which
# cannot filter by path, keeps running.
paths:
- 'pnpm-lock.yaml'
- 'pnpm-workspace.yaml'
- '**/package.json'
- '**/package-lock.json'
- '.github/workflows/internal-registry.yml'
merge_group:
permissions: {}
# A new push to a pull request cancels its superseded run; merge-queue entries
# keep their own uncancelled groups.
concurrency:
group: 'internal-registry-${{ github.event.pull_request.number || github.event.merge_group.head_sha || github.run_id }}'
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
# test-deps: its scope is the dependency files the trigger lists, so a pull
# request that starts it always changed one; a merge-group entry always runs
# it. Nothing inside reclassifies.
test-deps:
if: (github.event_name != 'pull_request' || !github.event.pull_request.draft && (github.event.pull_request.head.repo.full_name == github.repository || contains(github.event.pull_request.labels.*.name, 'ci:run')))
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 50
- uses: meta/lexical/.github/actions/internal-registry/dependency-check@internal-registry-dependency-check-v1
continue-on-error: true