Skip to content

feat: detect upstream PRs to credit open source contributions - #396

Open
SushantTusharJoshi wants to merge 1 commit into
interviewstreet:mainfrom
SushantTusharJoshi:feat/upstream-pr-detection
Open

feat: detect upstream PRs to credit open source contributions#396
SushantTusharJoshi wants to merge 1 commit into
interviewstreet:mainfrom
SushantTusharJoshi:feat/upstream-pr-detection

Conversation

@SushantTusharJoshi

Copy link
Copy Markdown

Summary

  • Adds fetch_upstream_prs() to search GitHub for PRs a candidate has submitted to repositories they don't own
  • Surfaces merged/open counts and target repos in the scoring context so the LLM can credit genuine open source contributions beyond owned repositories
  • Integrates upstream PR data into convert_github_data_to_text() for the evaluation prompt

Problem

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: New fetch_upstream_prs() function using GitHub Search API (author:{username} type:pr -user:{username})
  • github.py: Integration in fetch_and_display_github_info() to include upstream PR data in results
  • transform.py: New section in convert_github_data_to_text() that formats upstream PR summary for the LLM

Closes #131

Test plan

  • Run against a GitHub profile with known upstream PRs and verify they appear in output
  • Run against a profile with no upstream PRs and verify graceful fallback
  • Verify scoring context includes upstream PR summary

Developed with Claude Code as a coding partner

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Issue: Inaccurate Open Source Contribution Detection

1 participant