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.
This commit is contained in:
Tommaso Casaburi
2026-06-13 13:39:22 +07:00
committed by GitHub
parent c3d72e53cc
commit 6cb28b0e4f
16 changed files with 813 additions and 199 deletions
+12 -4
View File
@@ -1,7 +1,7 @@
# React Doctor PR review.
# Reports only issues this PR INTRODUCES (diffed against the merge-base) as inline
# review comments + a sticky summary. It reads doctor.config.jsonc, so the
# React-Compiler rules we don't enforce stay suppressed (see that file and
# 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
@@ -25,4 +25,12 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # so React Doctor can diff against the merge-base for new-vs-existing
- uses: millionco/react-doctor@v1
- 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