Skip to content

Fix GitHub search rate throttling#24

Merged
rogerchappel merged 1 commit into
mainfrom
fix/token-compatible-contributor-activity
May 13, 2026
Merged

Fix GitHub search rate throttling#24
rogerchappel merged 1 commit into
mainfrom
fix/token-compatible-contributor-activity

Conversation

@rogerchappel
Copy link
Copy Markdown
Owner

Summary\n- scale REST throttling buffer to the actual GitHub bucket limit instead of assuming the 5k core REST bucket\n- avoid immediate sleep loops for GitHub search buckets, which are often around 30/min\n- serialize per-user commit/PR search calls so they do not race the shared throttle state\n\n## Why\nThe live refresh was sleeping immediately with repeated:\n\n\n[throttle] Approaching rest rate limit — sleeping 60s until reset.\n\n\nThat happened because GitHub search exposes a much smaller REST-style bucket, and the old hard-coded 100-request REST buffer is larger than the whole search bucket.\n\n## Verification\n- pnpm run check\n- pnpm run test

@rogerchappel rogerchappel force-pushed the fix/token-compatible-contributor-activity branch from 125b813 to d244d62 Compare May 13, 2026 02:41
@rogerchappel rogerchappel merged commit 6253d44 into main May 13, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant