Fix fork contribution detection using contributors API #150
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.
PR Description
Fixes the fork contribution detection logic that was missing legitimate open source contributions.
Fixes #149
How the Fix Works
The standard open source workflow is: fork repository → make changes → create PR → get merged. However, the current system was skipping all forks with low fork counts, completely missing these contributions.
The Problem: When a developer contributes to a major project like React, they fork it to their account, make changes, and submit a PR. Their fork typically has 0 forks (it's just a working copy), so the old logic skipped it entirely.
The Solution: Instead of checking the fork's popularity, we now check if the developer actually appears in the original repository's contributors list. If they do, we count it as a legitimate open source contribution using the original repo's significance (stars/forks).
Flow Diagram
Changes Made
/repos/{owner}/{repo}/contributorsto verify actual contributionsExample Impact
This ensures developers following proper open source workflow get fair credit for their contributions.
Testing & Validation
Smoke Tests Performed:
Provider Testing:
Manual Validation: