fix(github): keep public profile when repos JSON parse fails (#8891) - #8932
Conversation
…ed#8891) Isolate repos-list parse errors from the user fetch so a truncated body degrades topLanguages to [] instead of discarding the whole profile. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8932 +/- ##
==========================================
+ Coverage 90.56% 90.58% +0.02%
==========================================
Files 96 97 +1
Lines 22490 22569 +79
Branches 3884 3907 +23
==========================================
+ Hits 20367 20445 +78
Misses 1945 1945
- Partials 178 179 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
|
Tip ✅ LoopOver review result - approve/merge recommendedReview updated: 2026-07-26 14:03:48 UTC
Review summary Nits — 4 non-blocking
Decision drivers
Context & advisory signals — never blocks the verdict
Linked issue satisfactionAddressed Review context
Contributor next steps
Signal definitions
🧪 Chat with LoopOverAsk LoopOver a question about this PR directly in a comment — grounded only in the same cached, public-safe facts shown above, never a new claim.
Full command reference: https://loopover.ai/docs/loopover-commands 🧪 Experimental — new and may change. Decision record
🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by LoopOver, a quiet PR intelligence layer for OSS maintainers.
|
Summary
topLanguages: []andsource: "github"— matching the existing HTTP non-ok degrade path.test/unit/adapters.test.ts.Scope
type(scope): short summaryConventional Commit format, for examplefix(api): restore profile access checks.CONTRIBUTING.mdand does not reintroduce GitHub Pages, VitePress,site/, orCNAME.Closes #123) — a linked open issue is required for every contributor PR.Validation
git diff --checknpx vitest run test/unit/adapters.test.ts— 11 passednpx vitest run --changed=origin/main --coverage.all=false --coverage && npx diff-cover coverage/lcov.info --compare-branch=origin/main— 100% patch lines (13/13) and 100% patch branches (2/2) onsrc/github/public.tsnpm run actionlintnpm run typechecknpm run test:coveragenpm audit --audit-level=moderateIf any required check was skipped, explain why:
Narrow
src/github/public.tsfix; fulltest:cileft for the opener before push. Targeted adapters tests cover the new catch paths (first-page parse + later-page parse).Notes for reviewers / gate
site/,CNAME,**/lovable/**, orCHANGELOG.md.