gh-stats-cli
Get simple GitHub
PR
contribution statistics (PR
s authored and commented on) via the command line.
Installation
npm install --global @jaebradley/gh-stats-cli
Usage
- You'll need a
GitHub
personal access token to authenticateGitHub
API requests - The CLI will store the personal access token in the
keychain
when executingghstats setup
- Because the CLI gets details for each PR (like comments, or merge time) it may make a decent number of API calls
- The per hour API limit for personal access tokens is
5,000
- You'll always be asked to confirm that you'd like to make the API calls
- The per hour API limit for personal access tokens is
- You'll need to specify a username
- You can optional specify an
organization
- The current options are
-
ghstats setup
- save your personal access token to thekeychain
-
ghstats week
- gets contributions over the past7
days -
ghstats past-day
- gets contributions over the past day (i.e.24
hours)
-