CLI to list all repos a user has access to, and report on their configuration in aggregate.
https://github.com/ljharb/repo-report.git
CLI to list all repos a user has access to, and report on their configuration in aggregate.
npm install to install all dependencies.env file and initialize GH_TOKEN or GITHUB_TOKEN (in order of precedence) with your Github tokenrepo scope.export GH_TOKEN=<your_personal_access_token>GH_TOKEN=your_personal_access_tokenexport GH_TOKEN=<the personal access token generated>npx repo-report./bin/run to get a report of all your repositories in the terminalnpx repo-report --help
1. --help
- Show all available flags and usage examples.
2. --unactionable
- Shows metrics you canβt change
3. --actual
- Shows raw values instead of a β
or β
4. --goodness
- Shows if a metric is "good" (β
) or "bad" (β)
5. -m, --metrics
- Lists available metrics.
6. --all
- Shows ALL metrics (Even ones that aren't actionable)
7. -p, --pick
- Lets you select specific metrics
8. -f, --focus
- Filters by repo type such as sources, forks, templates, private or public
9. --names
- Shows repo names alongside their owners
10. -s, --sort
- Sorts by "last updated date" by default; can be set to name or created instead.
11. -desc
- Sorts descending instead of ascending.
11. --cache
- Saves API request data in --cacheDir.
# Optional (but helpful)
- If you would like an extended and more detailed view of your repos you can use:
- npx repo-report --all --actual
- If you would like to have this be the default view whenever you run repo-report, you can run with:
- alias repo-report='npx repo-report --all --actual
- then run source ~/.bashrc`The following shows an example output of repo-report --all --actual for my repositories. It shows important repository settings like issues, projects, branch protection, and allowed merge strategies. Additional details such as auto-merge, branch deletion on merge, and license information are also included in the full output as seen by the extended table below.