feat: add filetree to GET /api/sandboxes response#209
Conversation
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]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the 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)
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. Comment |
Summary
filetreefield to GET /api/sandboxes response, fetched from the GitHub API using the account'sgithub_repoURLlib/github/parseGitHubRepoUrl.tsto extract owner/repo from GitHub URLslib/github/getRepoFileTree.tsto fetch the recursive file tree via GitHub's Trees APITest plan
parseGitHubRepoUrl(standard URLs, edge cases, invalid inputs)getRepoFileTree(success, missing token, API failures, auth headers)getSandboxesHandler(existing tests updated + 4 new filetree tests)pnpm buildpasses with no type errors🤖 Generated with Claude Code