Repository navigation
feat: deploy YouTube API v3 worker and fix CI workflow failures - #246
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 deploy-worker job to .circleci/config.yml targeting Cloudflare Workers with CLOUDFLARE_API_TOKEN/CLOUDFLARE_ACCOUNT_ID env vars on main branch - Upgrade node-checks job to cimg/node:22.11 with separate root (pnpm) and functions (npm --legacy-peer-deps) install steps - Add validate and deploy workflows to organize CI/CD stages - Fix python-checks workflow failures: replace builtin open() with Path.open() across fix_app.py and fix_index.py so ruff PTH123 rule passes clean - Auto-fix 11 remaining ruff violations (Q000, UP015, Q004, F401) across Python utility scripts; reformat fix_deps.py - Fix functions/package.json: remove duplicate firebase-admin entry, remove extraneous lint dep, downgrade typescript from ^6 to ^5.6.0, set engines.node to >=20 - Update functions/package-lock.json to match fixed package.json - Reformat functions/.eslintrc.js from minified to readable - Update pnpm-workspace.yaml: add explicit packages section and extend allowBuilds with @parcel/watcher, protobufjs, unrs-resolver - Add functions/pnpm-lock.yaml generated from pnpm install in functions/ 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 | e0948c9 | Oct 16 2026, 07:34 PM |
Contributor
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ❌ Deployment failed View logs |
ytstudio | e0948c9 | Oct 16 2026, 07:34 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
src/youtube-worker.tsfetches live channel stats, video lists, and search results from the YouTube Data API v3 (UCrjJP_SHUeCmqpTSHJCXkdA). Falls back to demo data when no API key is bound.deploy-workerjob to.circleci/config.ymlthat runspnpm run deploy:worker(→wrangler deploy) on every push tomainusingCLOUDFLARE_API_TOKENandCLOUDFLARE_ACCOUNT_IDproject-level env vars.validateanddeployworkflows:python-checks: replaced bareopen()calls infix_app.pyandfix_index.pywithPath.open()/Path.read_text()(ruff PTH123); auto-fixed 11 additional ruff violations (Q000, UP015, Q004, F401); ruff now exits clean.node-checks: upgraded Docker image tocimg/node:22.11, separated root (pnpm) and functions (npm --legacy-peer-deps) install steps, fixedfunctions/package.json(removed duplicatefirebase-admin, removed straylintdep, pinnedtypescriptto^5.6.0, setengines.node ≥ 20).functions/.eslintrc.js: reformatted from minified one-liner to readable; ESLint still passes with--max-warnings 0.pnpm-workspace.yaml: added explicitpackages: ['.']and extendedallowBuildsfor@parcel/watcher,protobufjs,unrs-resolver.Test plan
pnpm run type-check— TypeScript (Cloudflare Worker) exits 0npm run lint --prefix functions -- --max-warnings 0— ESLint exits 0npm run build --prefix functions— tsc exits 0ruff check .— exits 0 (all 27 violations resolved)validateworkflow (python-checks + node-checks) greendeployworkflow deploys worker to Cloudflare on merge to main (requiresCLOUDFLARE_API_TOKEN+CLOUDFLARE_ACCOUNT_IDset in project settings)https://app.circleci.com/agents/gh/ruhdevops/chat/d2b1f530-7ac5-4c0c-a84c-4bdaa5b58123