Repository navigation
feat: YouTube API v3 worker deploy + fix CI workflow failures - #313
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
…ures - Add deploy-worker job to .circleci/config.yml that validates YouTube API v3 endpoints (channel, videos, search) and deploys src/youtube-worker.ts to Cloudflare Workers via wrangler (requires CLOUDFLARE_API_TOKEN secret) - Fix functions/package.json: remove duplicate firebase-admin key (^10.3.0 conflicted with firebase-functions@7 peer dep), fix typescript version from non-existent ^6.0.0 to ^5.5.0, update node engine to 20 - Fix ruff PTH123 violations in fix_app.py and fix_index.py by replacing open() calls with Path.open() - Auto-fix ruff Q000 quote style in fix_deps.py (single -> double quotes) 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 | d8eeaf1 | Nov 01 2026, 02:25 AM |
Contributor
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ❌ Deployment failed View logs |
ytstudio | d8eeaf1 | Nov 01 2026, 02: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
deploy-workerjob to.circleci/config.yml— runs afternode-checksonmainbranch, validates YouTube API v3 endpoint structure, then deployssrc/youtube-worker.ts(theytstudioCloudflare Worker) viawrangler deploy. Deployment is skipped gracefully ifCLOUDFLARE_API_TOKENis not set.functions/package.json— removed duplicatefirebase-adminkey (^10.3.0overrode^13.9.0and conflicted withfirebase-functions@7peer dependency, causingnpm installto fail), fixed non-existenttypescript@^6.0.0to^5.5.0, updatednodeengine to20to match CI image.fix_app.pyandfix_index.py— replacedopen()withPath.open()soruff check . --fixexits cleanly in thepython-checksCI job.fix_deps.py(single → double quotes perpyproject.tomlconfig).Workflow failures fixed
node-checksnpm installinfunctions/failed due to duplicatefirebase-adminkey and invalidtypescript@^6.0.0functions/package.jsonpython-checksruff check . --fixexited 1 on non-auto-fixable PTH123 violationsfix_app.pyandfix_index.pyto usePath.open()YouTube API v3 Worker
The
src/youtube-worker.tsCloudflare Worker exposes these endpoints against channelUCrjJP_SHUeCmqpTSHJCXkdA(Ruh Al Tarikh):GET /api/channel—channels?part=statistics,snippetGET /api/videos—playlistItems?part=snippet,contentDetailsGET /api/search?q=...—search?part=snippet&type=videoFalls back to demo data if
YOUTUBE_API_KEYsecret binding is absent.Test plan
python-checksjob passes (ruff check . --fixexits 0)node-checksjob passes (npm installinfunctions/succeeds)deploy-workerjob runs onmainand prints YouTube API v3 endpoint infoCLOUDFLARE_API_TOKENto CircleCI project secrets to enable live wrangler deployhttps://app.circleci.com/agents/gh/ruhdevops/chat/238a6707-7c7e-4166-b22d-beca476897dd