fix(contributor-profile): prevent crashes on failed GitHub API responses#484
Conversation
✅ Deploy Preview for github-spy ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe ChangesAPI Response Validation
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Suggested labels
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
There was a problem hiding this comment.
🎉 Thank you @mayurigade-hub for your contribution. Please make sure your PR follows https://github.com/GitMetricsLab/github_tracker/blob/main/CONTRIBUTING.md#-pull-request-guidelines
|
🎉🎉 Thank you for your contribution! Your PR #484 has been merged! 🎉🎉 |
Related Issue
Description
This PR fixes the contributor profile page crashing when GitHub API requests fail.
Changes made:
response.okchecks for GitHub API responsesprsData.items ?? []This ensures the page no longer crashes and users receive proper feedback when API requests fail.
How Has This Been Tested?
Screenshots (if applicable)
N/A — Backend/API handling fix, no major UI changes.
Type of Change
Summary by CodeRabbit