You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These are just some handy scripts for looking at community health.
I used Claude Opus 4.5 (claude-opus-4-5-20251101) in the creation of these scripts. I have reviewed the contents and take full responsibility for them.
Overall: These are straightforward utility scripts for community health tracking. The code is clean and well-structured. A few observations:
P1 Issues
review_stats.py - Cache invalidation missing: The PR review cache (pr_reviews) grows unbounded and stores stale data forever. Old PRs remain cached even after the 30-day window passes. Consider:
Adding a timestamp to cached entries and purging entries older than 30 days
Or simply not caching PR reviews since the data changes over time (reviews can be added after merge)
new_contributors.py - Potential false positives: Contributors whose email cannot be resolved to a GitHub username are included in the output with "(unknown)" username. These could be collaborators with write access who simply used a different email. The script's current logic includes them as "non-write contributors" which may overcount community contributions. Consider adding a note in the output or filtering these separately.
Minor Observations (not blocking)
Both scripts duplicate get_collaborators_with_write() - could be extracted to a shared module if more scripts are added later
No --help or argument parsing, but acceptable for internal utility scripts
No security concerns. No test coverage, but these are developer tools not part of the main codebase.
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
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.
These are just some handy scripts for looking at community health.
I used Claude Opus 4.5 (claude-opus-4-5-20251101) in the creation of these scripts. I have reviewed the contents and take full responsibility for them.