Repository navigation
feat: YouTube API v3 worker integration + CI workflow fixes - #256
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
- app/src/index.ts: implement YouTube API v3 (videos, channel, search) with CORS, demo fallback, and typed responses - app/wrangler.jsonc: replace placeholder WORKER_NAME/COMPATIBILITY_DATE with real values (yt-studio-app, 2025-01-01) - functions/package.json: remove duplicate firebase-admin entry (kept ^13.9.0), downgrade typescript from ^6.0.0 to ^5.5.0 so npm install resolves correctly - fix_app.py / fix_index.py: replace open() with Path.open() to fix PTH123 ruff violations (non-auto-fixable) that were blocking the python-checks CI job - .circleci/config.yml: upgrade Docker image to cimg/node:22.19 to match functions node engine requirement; add worker-build job (TypeScript typecheck + wrangler dry-run) and worker-deploy job (Cloudflare Workers deployment on main); restructure into validate + deploy workflows 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 | eba4eae | Oct 18 2026, 03:25 AM |
Contributor
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ❌ Deployment failed View logs |
ytstudio | eba4eae | Oct 18 2026, 03:25 AM |
✅ Deploy Preview for elegant-seahorse-d9d460 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
❌ Deploy Preview for ytr-studio failed.
|
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
app/src/index.tsnow implements full YouTube Data API v3 endpoints (/api/videos,/api/channel,/api/search) with CORS headers, typed responses, and graceful demo-data fallback whenYOUTUBE_API_KEYis not set. Channel targeted:UCrjJP_SHUeCmqpTSHJCXkdA(Ruh Al Tarikh).app/wrangler.jsonc: Replaced<WORKER_NAME>/<COMPATIBILITY_DATE>placeholders so theyt-studio-appCloudflare Worker is deployable.functions/package.json: Removed duplicatefirebase-adminkey that madenpm installfail withERESOLVE(kept^13.9.0, compatible withfirebase-functions@7). Fixed TypeScript version from non-existent^6.0.0→^5.5.0.fix_app.py/fix_index.py: Replacedopen()withPath.open()to resolve PTH123 ruff violations that were non-auto-fixable and causing thepython-checksCI job to exit 1..circleci/config.yml: Upgraded Docker image tocimg/node:22.19(matches"engines": {"node": "24"}in functions), addedworker-buildjob (TypeScript typecheck + wrangler dry-run for both workers), addedworker-deployjob (deploys to Cloudflare Workers onmainbranch viaCLOUDFLARE_API_TOKEN/CLOUDFLARE_ACCOUNT_IDsecrets), and split intovalidate+deployworkflows.Test plan
python-checksjob:ruff check . --fixexits 0 (11 remaining errors are all[*]auto-fixable);ruff format .succeedsnode-checksjob:npm installinfunctions/resolves without ERESOLVE; ESLint andtsc --noEmitpassworker-buildjob:tsc --noEmitpasses for both workers; wrangler dry-run validates the main worker configworker-deployjob (main-only): deploysytstudioandyt-studio-appworkers whenCLOUDFLARE_API_TOKEN/CLOUDFLARE_ACCOUNT_IDsecrets are configuredhttps://app.circleci.com/agents/gh/ruhdevops/chat/25cae2eb-36d8-4e17-aed7-4818853975fc