check_contributors.py makes two gh calls per pull request where one would do
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 84/100
Research direction
Read scripts/contributors_github.py and locate fetch_commit_authors, fetch_closing_issues, plus the --pending and --stub paths. Check how the fake-runner tests count gh commands and preserve the run_gh timeout and all-or-nothing failure behavior. Done means each path makes one gh pr view call per PR and the existing fake-runner tests cover that count.
Written by the indexing model from the issue text.
Description
Where: scripts/contributors_github.py (fetch_commit_authors, fetch_closing_issues).
Current gap: Both wrappers run gh pr view N per pull request, one with --json commits and one with --json closingIssuesReferences, so a sweep with 10 pending PRs makes 20 calls (each a GraphQL round trip, about a second) when --json commits,closingIssuesReferences returns both.
Suggested approach: Replace the two wrappers by one fetch_pr_details(numbers) returning {number: {commit_authors, closing_issues}} and have --pending and --stub use it, keeping the run_gh timeout and the all-or-nothing failure behaviour.
Done when: a pending run and a stub run each make one gh pr view call per PR, covered by the fake-runner tests that already count the commands.
- Dominant language
- HTML
- Stars
- 47
- Forks
- 45
- Avg merge
- 2h 49m
- Merged PRs (30d)
- 69
Getting set up
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from yakew7/Fair-Code
-
community enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
Maintainers usually reply within 1 day
-
The weekly external-links issue counts the 403 links with no archive copy but does not list themOpenci enhancement tooling
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
Maintainers usually reply within 1 day
-
enhancement reproducibility tooling
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
enhancement good first issue testing
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
check_contributors.py --stub does not say when a pull request's commit is authored by someone elseOpencommunity enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
All issues in yakew7/Fair-Code
Similar issues
-
good first issue repo
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Dsek-LTH/dsek-typst#27 ·
-
fix
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
idean3885/claude-ops-agent#1083 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
stacklok/toolhive-catalog#1976 ·
Maintainers usually reply within 1 day
-
status/need-triage
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
google-gemini/gemini-cli#30328 · 1 comment ·
Maintainers usually reply within 1 day