Repository navigation
feat: YouTube API v3 worker deploy + CI pipeline fixes - #310
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
- Implement YouTube Data API v3 fetching in src/youtube-worker.ts: /api/channel (stats), /api/videos (uploads playlist), /api/search Falls back to demo data when YOUTUBE_API_KEY is not set. - Add worker-checks and worker-deploy jobs to .circleci/config.yml; deploy workflow targets main branch via wrangler deploy. - Fix functions/package.json: node 24→18, remove duplicate firebase-admin and bad 'lint' dep, TypeScript 6.0→5.8. - Fix functions/.eslintrc.js: reformat from minified to readable (no logic change). - Fix package.json: add wrangler devDep, replace npx wrangler with installed binary. - Sync pnpm-lock.yaml and functions/package-lock.json to match manifests. 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 | 8fa56f0 | Oct 31 2026, 03:31 AM |
Contributor
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ❌ Deployment failed View logs |
ytstudio | 8fa56f0 | Oct 31 2026, 03:31 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
src/youtube-worker.ts): Fetches live data from YouTube Data API v3 for channelUCrjJP_SHUeCmqpTSHJCXkdA(Ruh Al Tarikh). Endpoints:/api/channel(stats),/api/videos(uploads playlist),/api/search. Gracefully falls back to demo data whenYOUTUBE_API_KEYsecret binding is absent..circleci/config.yml): Addedworker-checksjob (TypeScript type-check + wrangler config validation) andworker-deployjob (Cloudflare Workers deployment viapnpm run deploy:worker). Newdeployworkflow triggers onmainonly; deploy is a no-op ifCF_API_TOKENis not set in project settings.functions/package.json: Fixednodeengine24→18, removed duplicatefirebase-adminentry and spuriouslintdependency, downgraded TypeScript^6.0.0→^5.8.0(v6 not yet stable).functions/.eslintrc.js: Reformatted from minified single-line to readable multi-line (semantically identical).package.json: Addedwrangler ^4.90.0as proper devDependency; replacednpx wranglercalls with the installed binary; removed Windows-onlycleanscripts.pnpm-lock.yaml/functions/package-lock.json: Synced to match updated manifests.Workflow Verification
All checks verified locally before opening this PR:
ruff check+ruff formatmypy --ignore-missing-importspytestpnpm install --frozen-lockfilenpm install --legacy-peer-depseslint --max-warnings 0tsc --noEmittsc --noEmit(worker type-check)To enable live Cloudflare deployment, add
CF_API_TOKENto CircleCI project environment variables.https://app.circleci.com/agents/gh/ruhdevops/chat/5901d6ed-4f71-4f92-b4fe-e491442c13b5