Repository navigation
feat: YouTube API v3 worker deploy + fix CI workflow failures - #244
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
- Fix functions/.eslintrc.js: rewrite from minified to properly formatted
so it passes its own ESLint rules (max-len, spacing, eol-last)
- Fix functions/package.json: remove duplicate firebase-admin entry and
downgrade firebase-functions from ^7.0.0 to ^6.5.0 to resolve npm
peer dependency conflict
- Fix Python linting violations in fix_app.py and fix_index.py:
replace builtin open() with Path.open() (PTH123)
- Update .circleci/config.yml:
- Upgrade Docker image to cimg/node:22.19 for Node 22 compatibility
- Add explicit 'npm install --legacy-peer-deps' step for functions/
before running lint (previously missing, causing lint to fail)
- Use local tsc binary (./node_modules/.bin/tsc) instead of npx tsc
- Add deploy-worker job: deploys src/youtube-worker.ts to Cloudflare
Workers as 'ytstudio' using wrangler with CLOUDFLARE_API_TOKEN
- Add deploy workflow: runs validate then deploys worker on main branch
AI-Generated: true
|
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
❌ 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. |
Contributor
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ❌ Deployment failed View logs |
ytstudio | a289e9a | Oct 16 2026, 05:25 PM |
Contributor
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ❌ Deployment failed View logs |
ytstudio | a289e9a | Oct 16 2026, 05:25 PM |
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 Deploy: Adds a
deploy-workerjob to the CircleCI pipeline that deployssrc/youtube-worker.tsto Cloudflare Workers (ytstudio) on every push tomain. The worker serves/api/channel,/api/videos, and/api/searchendpoints backed by YouTube Data API v3, with automatic fallback to demo data whenYOUTUBE_API_KEYis not set.Fix
node-checksworkflow failures:functions/.eslintrc.jswas minified to a single 483-char line, causing it to violate its own lint rules (max-len,comma-spacing,key-spacing,eol-last). Rewritten in standard multi-line format.functions/package.jsonhad a duplicatefirebase-adminentry andfirebase-functions: ^7.0.0which causednpm installto abort with a peer dependency conflict. Removed the duplicate and downgraded to^6.5.0.functions/node_modulesbefore runningnpm run lint— added explicitnpm install --legacy-peer-depsstep.npx tscwith./node_modules/.bin/tscfor deterministic execution.cimg/node:20.18→cimg/node:22.19to align withfunctions/package.jsonengines requirement.Fix
python-checksworkflow failures:fix_app.pyandfix_index.pyusedopen()instead ofPath.open()(ruffPTH123). Fixed both files.ruff check --fix+ruff format.Test plan
python-checksjob:ruff check .returns 0 errors,ruff format .is a no-opnode-checksjob:cd functions && npm run lint -- --max-warnings 0exits 0;tsc --noEmitexits 0deploy-workerjob: runs onmainafter both check jobs pass; requiresCLOUDFLARE_API_TOKENandCLOUDFLARE_ACCOUNT_IDCircleCI env vars to be set for live deployment/) returns JSON withstatus: "healthy", worker name, channel ID and available endpointshttps://app.circleci.com/agents/gh/ruhdevops/chat/e0b71a2e-6f7b-4164-ac54-884cb8ce0e1b