As Jellyvision, we would like visibility into engineering activity so that we can track development trends across projects.
We want to consume GitHub’s public API and compute how active a user is in open-source projects.
Despite what the REST API endpoints for events - GitHub Docs suggests, no API key or bearer token is required to fetch public repo activity.
- Write a program to access GitHub’s public API for a user (ie ge0ffrey )
- For each repo that the user has contributed to recently:
- Find their 3 most common activity types. (e.g. commits, pull requests, comments, merges…)
- Within that recent activity, flag any repos that the user owns.
- Install the
uvtool if you don't have it already - Update src/main.py with the desired GitHub username
- Run:
uv sync
uv run src/main.pyA nice-to-have would be to extend this to provide a CLI interface to specify the GitHub username as an argument using something like Argparse
Another nice-to-have would be to sleep/retry GitHub API calls to avoid rate limiting.
To run the tests, use the following command:
pytestor alternatively using uv:
uv run pytestTo run code formatting and linting, run the following:
ruff format
ruff check --fix