Skip to content

Comments

feat: add filetree to GET /api/sandboxes response#209

Merged
sweetmantech merged 1 commit intotestfrom
sweetmantech/myc-4159-api-filetree-get-apisandboxes-response-add-filetree
Feb 6, 2026
Merged

feat: add filetree to GET /api/sandboxes response#209
sweetmantech merged 1 commit intotestfrom
sweetmantech/myc-4159-api-filetree-get-apisandboxes-response-add-filetree

Conversation

@sweetmantech
Copy link
Contributor

Summary

  • Adds filetree field to GET /api/sandboxes response, fetched from the GitHub API using the account's github_repo URL
  • Creates lib/github/parseGitHubRepoUrl.ts to extract owner/repo from GitHub URLs
  • Creates lib/github/getRepoFileTree.ts to fetch the recursive file tree via GitHub's Trees API
  • Filetree fetch runs in parallel with sandbox status calls for performance

Test plan

  • 7 tests for parseGitHubRepoUrl (standard URLs, edge cases, invalid inputs)
  • 8 tests for getRepoFileTree (success, missing token, API failures, auth headers)
  • 16 tests for getSandboxesHandler (existing tests updated + 4 new filetree tests)
  • pnpm build passes with no type errors

🤖 Generated with Claude Code

Fetches the recursive file tree from the GitHub API using the account's
github_repo URL and includes it in the sandboxes response. The filetree
fetch runs in parallel with sandbox status calls for performance.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@vercel
Copy link
Contributor

vercel bot commented Feb 5, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
recoup-api Ready Ready Preview Feb 6, 2026 0:40am

Request Review

@coderabbitai
Copy link

coderabbitai bot commented Feb 5, 2026

Warning

Rate limit exceeded

@sweetmantech has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 16 minutes and 42 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch sweetmantech/myc-4159-api-filetree-get-apisandboxes-response-add-filetree

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@sweetmantech sweetmantech merged commit 979d8ca into test Feb 6, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant