Repository navigation
feat: YouTube API v3 integration + CI workflow fixes for worker deploy - #319
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
- Add build-worker and deploy-worker jobs to .circleci/config.yml to bundle and deploy src/youtube-worker.ts to Cloudflare (ytstudio) - Switch ruff CI step from auto-fix to check-only mode - Add root TypeScript type check step to node-checks job - Fix app/wrangler.jsonc: set real worker name and compatibility date - Fix functions/package.json: node 24->20, remove duplicate firebase-admin, remove lint package, pin typescript to ^5.5.0 - Regenerate functions/package-lock.json to match fixed package.json - Reformat functions/.eslintrc.js from minified to readable - Fix fix_app.py, fix_deps.py, fix_index.py: pass ruff lint/format checks - Remove circletui from duplicate position in root package.json dependencies The youtube-worker.ts fetches YouTube Data API v3 for channel stats, video listings (via uploads playlist), and search, with demo fallback. AI-Generated: true
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
|
❌ Deploy Preview for ytr-studio failed.
|
Contributor
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ❌ Deployment failed View logs |
ytstudio | b0b2845 | Nov 03 2026, 01:30 AM |
Contributor
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ❌ Deployment failed View logs |
ytstudio | b0b2845 | Nov 03 2026, 01:30 AM |
✅ 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
src/youtube-worker.ts) already implemented endpoints for channel stats, video listings (via uploads playlist), and search — with graceful demo-data fallback whenYOUTUBE_API_KEYis absentvalidateworkflow now includesbuild-worker(bundles the worker with esbuild) afternode-checksdeployworkflow added formain-only: runspython-checks→node-checks→build-worker→deploy-worker(Cloudflarewrangler deploy)--fix) to check-only mode (fails on lint errors rather than silently patching them)node-checksjobFixes
.circleci/config.ymlbuild-worker+deploy-workerjobs; fixed ruff commandapp/wrangler.jsoncyt-studio-worker) andcompatibility_date(2025-01-01)functions/package.jsonnodeengine24→20; removed duplicatefirebase-admin; removed straylintpackage; pinnedtypescriptto^5.5.0functions/package-lock.jsonpackage.jsonfunctions/.eslintrc.jsfix_app.py/fix_deps.py/fix_index.pyruff format --checkpackage.jsontrigger-circleci-pipelinefrom dependencies (kept in devDependencies)Local verification
All checks verified before commit:
ruff check .→ All checks passedruff format --check .→ 59 files already formattedpnpm install --frozen-lockfile→ Done in 29mscd functions && npm run lint -- --max-warnings 0→ Passcd functions && node_modules/.bin/tsc --noEmit→ Passnode_modules/.bin/tsc --noEmit(root) → Passesbuild src/youtube-worker.ts --bundle ...→ 8.7kb bundle built successfullyhttps://app.circleci.com/agents/gh/ruhdevops/chat/3791e3b8-9621-4fb5-a9ec-b6237f611d21