fix: exclude own repos from PR counts and filter by star count#544
Open
costajohnt wants to merge 2 commits intomainfrom
Open
fix: exclude own repos from PR counts and filter by star count#544costajohnt wants to merge 2 commits intomainfrom
costajohnt wants to merge 2 commits intomainfrom
Conversation
- Add -user: qualifier to GitHub Search API query to exclude own repos at the API level, preventing pagination waste (89/100 results were from own repos) - Add 50+ star threshold in getStats() so only meaningful OSS contributions count toward merged/closed totals - Bump cache key to v2 to invalidate stale cached data Closes #543
The stdio transport tests spawn a real child process via `npx tsx`, which has variable startup time on CI runners. The default 5s vitest timeout is too tight — bump to 30s for the stdio describe block.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
-user:qualifier to GitHub Search API query to exclude own repos at the API level, preventing pagination waste (89/100 results were from costajohnt/oss-autopilot)getStats()so only meaningful OSS contributions count toward merged/closed totalsv2to invalidate stale cached data that included own-repo noiseChanges
github-stats.ts-user:${githubUsername}so the API itself filters out own repos instead of wasting pagination slotspr-counts:${label}topr-counts:v2:${label}to invalidate stale datastate.tsgetStats()now skips repos withstargazersCount < 50— only repos with 50+ stars count toward merged/closed/tracked totalsTests
github-stats.test.ts-user:qualifier is included in search querystargazersCountto allgetStats()test fixturesTest plan
-user:qualifier in search querygetStats()/ossand confirm merged PR count reflects only 50+ star reposCloses #543