Repository navigation
feat: YouTube API v3 worker + fix all CI workflow failures - #315
Open
circleci-app[bot] wants to merge 1 commit into
Open
circleci-app[bot] wants to merge 1 commit into
circleci-app[bot] wants to merge 1 commit into
Conversation
- Replace app/src/index.ts Hello World stub with full YouTube API v3 Cloudflare Worker (endpoints: /health, /api/channel, /api/videos, /api/search) with demo-video fallback when no API key is configured - Fix app/wrangler.jsonc placeholder values with real values (yt-studio, 2025-01-01) and add vars for CHANNEL_ID - Update app/test/index.spec.ts: 4 tests covering health endpoint, demo video fallback, and 404 handling; all tests pass locally - Fix functions/.eslintrc.js: rewrite minified one-liner as formatted JS to resolve 40 lint errors (max-len, spacing rules) - Fix functions/package.json: remove duplicate firebase-admin key that overrode ^13.9.0 with ^10.3.0 causing peer-dep conflict; remove unused lint dep; fix typescript ^6.0.0 to ^5.5.0; fix engines.node to >=18 - Fix .circleci/config.yml: add functions npm install before lint/tsc; add new worker-checks job for app/ vitest suite - Fix root package.json: remove duplicate circletui dependency AI-Generated: true
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
|
Contributor
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ❌ Deployment failed View logs |
ytstudio | 38ce98a | Nov 02 2026, 12:27 AM |
Contributor
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ❌ Deployment failed View logs |
ytstudio | 38ce98a | Nov 02 2026, 12:27 AM |
❌ Deploy Preview for ytr-studio failed.
|
✅ Deploy Preview for elegant-seahorse-d9d460 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
This branch had an error being deployed
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
YouTube API v3 Worker: Replaces the
app/src/index.tsHello World stub with a full Cloudflare Worker that fetches live YouTube Data API v3 data (channel stats, video listings, search). Falls back to demo videos when noYOUTUBE_API_KEYsecret is configured, matching the existing pattern insrc/youtube-worker.ts.Worker config fixed:
app/wrangler.jsonchad placeholder values (<WORKER_NAME>,<COMPATIBILITY_DATE>). Now set toyt-studio/2025-01-01withCHANNEL_IDvar bound to the Ruh Al Tarikh channel.Worker tests updated:
app/test/index.spec.tsreplaced Hello World snapshot tests with 4 meaningful tests (health status, demo video fallback, 404). All pass locally.functions/.eslintrc.jsfixed: File was minified (single line, 483 chars), causing 40 ESLint errors includingmax-lenand spacing rules. Rewritten as properly formatted JS.functions/package.jsonfixed:"firebase-admin"key (^13.9.0was silently overridden by^10.3.0), which broke the peer-dep constraint offirebase-functions@7(requires^11+). Removed the stale^10.3.0entry.lintdependency.typescriptfrom^6.0.0(doesn't exist) to^5.5.0.engines.nodefrom"24"to">=18"to match CI environment..circleci/config.ymlfixed:node-checksjob was runningnpm run lintinfunctions/without first installingfunctions/node_modules(only root pnpm deps were installed). Addednpm install --legacy-peer-depsstep for the functions directory.worker-checksjob that installsapp/deps and runsvitest.Root
package.json: Removed duplicatecircletuientry.Test plan
python-checksjob passes (ruff, mypy, pytest)node-checksjob passes (functions lint, tsc)worker-checksjob passes (app tsc + vitest: 4 tests)https://app.circleci.com/agents/gh/ruhdevops/chat/1b00078e-f26c-4108-9636-6d8a52ecfb1a