Create detailed and summary CSV reports of activity by a GitHub user, using the GraphQL API
Say you just want to get a CSV file of all your commits on the deafult branch of a repo.
cd ghgql
- Set your GitHub access token in
etc/app.local.yml
- Run
python config.py
- Run your commit query via
python repo_commits.py REPO_OWNER REPO_NAME COMMITTER -o OUTPUT_DIR -s START_DATE -e END_DATE
This app is currently limited to querying commits from the default branch of a repo.
This tool was created to:
- Explore the GitHub GraphQL API for fun.
- Output CSV reports around repos, users and commits - all within a target GH user or organization.
- Act as a wrapper on requests and formatting, so you can focus on writing or using a query and getting the data out as a CSV.
- Act an easy CLI for anyone - without caring about what language the tool is implemented in (other than installing initially).
If you want to make the project better, see the contribution guidelines.
Released under MIT by @MichaelCurrin.