@jaebradley/gh-stats-cli

1.0.4 • Public • Published

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

Package Sidebar

Install

npm i @jaebradley/gh-stats-cli

Weekly Downloads

0

Version

1.0.4

License

MIT

Unpacked Size

65.7 kB

Total Files

26

Last publish

Collaborators

  • jaebradley