Repository navigation
feat: YouTube API v3 worker + fix CircleCI workflow failures - #311
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
- app/src/index.ts: Cloudflare Worker fetching YouTube Data API v3 (channel stats, video listing, search) for channel UCrjJP_SHUeCmqpTSHJCXkdA - app/test/index.spec.ts: 8 vitest tests covering all worker endpoints - app/wrangler.jsonc: set worker name 'ytstudio' and compatibility date Fix CircleCI workflow failures: - .circleci/config.yml: upgrade to Node 22, add 'npm install' step for functions/ (node_modules was missing), add worker-test and worker-deploy jobs, add 'validate' and 'deploy' workflows - fix_app.py, fix_index.py: replace builtin open() with Path.open() to fix PTH123 ruff errors that blocked the python-checks job - functions/package.json: remove duplicate firebase-admin entry and downgrade typescript to ^5 (^6 does not exist) - pnpm-lock.yaml: sync lockfile with package.json changes 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 | c8bf71e | Nov 01 2026, 12:46 AM |
Contributor
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ❌ Deployment failed View logs |
ytstudio | c8bf71e | Nov 01 2026, 12:47 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
app/src/index.ts): fetches channel stats, video listings, and search results from YouTube channelUCrjJP_SHUeCmqpTSHJCXkdAvia the YouTube Data API v3. Falls back to demo data when no API key is configured. Exposes/health,/api/channel,/api/videos, and/api/searchendpoints.app/wrangler.jsonc): worker name set toytstudio, compatibility date2024-09-23.app/test/index.spec.ts): cover all endpoints including health, channel, videos, search, 404s, and CORS preflight.Workflow fixes
python-checksruff check . --fixexited non-zero due to PTH123 (open()→Path.open()) infix_app.pyandfix_index.py— not auto-fixablePath.open()node-checksfunctions/node_modulesmissing — only root pnpm install ran, so ESLint and tsc failedcd functions && npm installstepnode-checkscimg/node:20.18but project requires Node 22 (.node-version)cimg/node:22.19functions/package.jsonfirebase-adminentry;typescript: ^6(non-existent)typescript: ^5.0.0New CI jobs
worker-test: installsapp/deps and runs all 8 vitest worker tests (runs on every branch).worker-deploy: deploys theytstudioworker viawrangler deployonmainonly — requiresCLOUDFLARE_API_TOKENandCLOUDFLARE_ACCOUNT_IDto be set in CircleCI project settings.https://app.circleci.com/agents/gh/ruhdevops/chat/fde80fbf-a25d-47dd-ac21-90f9bf4acc97