fix(github): cap unbounded backfill list pagination at 10 pages (#8890) - #8963
Conversation
…bored#8890) Bound syncLabels and both GraphQL open-issue/PR undercount supplements so a pathological repo cannot turn one sync into an unbounded fetch loop. 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 #8963 +/- ##
==========================================
+ Coverage 90.56% 90.86% +0.30%
==========================================
Files 96 97 +1
Lines 22490 23861 +1371
Branches 3884 4415 +531
==========================================
+ Hits 20367 21681 +1314
- Misses 1945 1952 +7
- Partials 178 228 +50
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:47:50 UTC
Review summary Nits — 5 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. 🟩 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
GITHUB_LIST_MAX_PAGES = 10forsyncLabels,supplementOpenIssuesFromGraphQl, andsupplementOpenPullRequestsFromGraphQl— matching the file’s existing 10-page convention.cappedsegment status (labels) or acap-matching warning (GraphQL supplements), consistent withgithubPaged.hasNextPage: false.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/backfill.test.ts -t "#8890"— 2 passedlate pagination,endCursor, unauthenticated labels fallback) — passednpm run actionlintnpm run typechecknpm run test:coveragenpm audit --audit-level=moderateIf any required check was skipped, explain why:
Narrow pagination-bound fix in
src/github/backfill.ts; fulltest:cileft for the opener before push.Notes for reviewers / gate
site/,CNAME,**/lovable/**, orCHANGELOG.md.