Files
5chan/.github/workflows/react-doctor.yml
T
Tommaso CasaburiandGitHub 6cb28b0e4f fix(youtube thumbnails): prefer best available image
Prefer the best available YouTube thumbnail, fall back cleanly when high-resolution images are unavailable, and keep the React Doctor PR gate scoped to newly introduced issues.
2026-06-13 13:39:22 +07:00

37 lines
1.2 KiB
YAML

# React Doctor PR review.
# Reports only issues this PR INTRODUCES (diffed against the base branch) as
# GitHub annotations. It reads doctor.config.jsonc, so the React-Compiler rules
# we don't enforce stay suppressed (see that file and
# docs/agent-playbooks/known-surprises.md). We do NOT chase the aggregate score.
name: React Doctor
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
permissions:
contents: read
pull-requests: write
issues: write
concurrency:
group: react-doctor-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
react-doctor:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # so React Doctor can diff against the merge-base for new-vs-existing
- name: Setup Node.js v22
uses: actions/setup-node@v4
with:
node-version: 22
- run: corepack enable
- name: Install dependencies
run: yarn install --immutable
- name: Run React Doctor on changed files
run: yarn doctor --verbose --scope changed --base "origin/${{ github.base_ref }}" --annotations --blocking error