feat: detect upstream PRs to credit open source contributions - #396
Open
SushantTusharJoshi wants to merge 1 commit into
Open
feat: detect upstream PRs to credit open source contributions#396SushantTusharJoshi wants to merge 1 commit into
SushantTusharJoshi wants to merge 1 commit into
Conversation
Adds fetch_upstream_prs() to search GitHub for PRs the candidate has submitted to repos they don't own. Surfaces merged/open counts and target repos in the scoring context so the LLM can credit genuine open source work beyond owned repositories. Closes interviewstreet#131 Developed with Claude Code as a coding partner
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
fetch_upstream_prs()to search GitHub for PRs a candidate has submitted to repositories they don't ownconvert_github_data_to_text()for the evaluation promptProblem
The current scoring pipeline only analyzes repos the candidate owns. Candidates who actively contribute to upstream projects (bug fixes, features, documentation) get no credit for that work — which is often more impressive than personal repos.
Changes
github.py: Newfetch_upstream_prs()function using GitHub Search API (author:{username} type:pr -user:{username})github.py: Integration infetch_and_display_github_info()to include upstream PR data in resultstransform.py: New section inconvert_github_data_to_text()that formats upstream PR summary for the LLMCloses #131
Test plan
Developed with Claude Code as a coding partner