Generates stats about GitHub repositories, including:
- Number of lines of code
- Number of PRs
- Number of commits
As well as:
- Top (5) users with the most PRs
- Top (5) users with the most commits
- Top (5) files by number of lines
- Top (5) files by total changes
(Recommended)
- Go to releases
- Install release for your platform
- Run from terminal
- Install Go https://go.dev/doc/install
- Clone repo, navigate into
/CTCWrapped/repo_stats - Run
go build - Run
./repo_stats
Generate a GitHub Personal Access Token
- Go to: https://github.com/settings/tokens
- Generate new token (top right)
- Generate a classic token
- Click the "repo" scope
- Generate token, add it into an
.envfile- Match the format of
.env.exampleNote: The .env file MUST be in the same folder as the compiled tool
- Match the format of
- Run
./repo_stats(or the name of your binary) - Provide GitHub username for the repository owner
- Provide the repository name
- Wait for all calls to complete, this may take a while