1.0.4 • Published 4 years ago

@jaebradley/gh-stats-cli v1.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

gh-stats-cli

Greenkeeper badge Build Status codecov npm npm-total-downloads GitHub

Get simple GitHub PR contribution statistics (PRs 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 authenticate GitHub API requests
  • The CLI will store the personal access token in the keychain when executing ghstats 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
  • 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 the keychain
    • ghstats week - gets contributions over the past 7 days
    • ghstats past-day - gets contributions over the past day (i.e. 24 hours)

Examples

first

second