Commit Graph

6 Commits

Author SHA1 Message Date
Peter Steinberger
7222fef197
feat(gh): cache hydrated PR details 2026-05-05 03:26:39 +01:00
Dallin Romney
fbc807c568
feat(github): show total page count in pagination logs (#7)
Parses rel="last" from the Link header, and for the cursor-paginated
issues listing falls back to open_issues_count from the prior GetRepo
response. Logs read "page 3/7 fetched count=100 accumulated=300" when a
total is known and remain "page 3 ..." otherwise.
2026-04-30 23:33:07 -07:00
Dallin Romney
330f492666
feat(github): retry on X-RateLimit-Remaining and Retry-After in client.do (#5)
Single chokepoint Client.do now inspects the response on 403/429 and,
when the headers say we're rate-limited (X-RateLimit-Remaining=0 or a
Retry-After value), sleeps until the reset and retries once. The sleep
honors ctx cancellation, so callers bound the wait with
context.WithTimeout if they want a deadline.

RequestError gains a Headers field so the retry decision can read the
underlying response without re-fetching.
2026-04-30 23:32:52 -07:00
Peter Steinberger
dd04208e5d
test: raise gitcrawl coverage above eighty five percent 2026-04-30 04:48:36 +01:00
Peter Steinberger
5d983ec8d4
perf: speed up metadata sync 2026-04-27 10:50:44 +01:00
Vincent Koc
cddee690e7
feat: add github rest client 2026-04-26 23:11:36 -07:00