JustinBeckwith / promotime

Fetch all those GitHub stats

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

P-R-O-M-O-T-I-M-E

A tool for gathering GitHub stats!

npm version codecov Known Vulnerabilities semantic-release XO code style

Installation

$ npm install -g promotime

Usage

# Get your aggregate stats for the last year
$ promotime JustinBeckwith --start 2018-03-01 --end 2019-03-01

Sample Output

SELECT * FROM `githubarchive.month.*` WHERE actor.login='JustinBeckwith' AND created_at > '2018-03-01' AND created_at < '2019-03-01'
{ pullRequestsCreated: 2389,
  pullRequestCommentsMade: 1026,
  issuesClosed: 2833 }

Authentication

For now, this uses the Google Cloud SDK for authentication. I know, that's less than ideal. If anyone wants, I can add the code to do OAuth2 based auth.

  • Make sure you have the Cloud SDK installed.
  • $ gcloud auth login
  • $ gcloud auth application-default login

License

MIT

About

Fetch all those GitHub stats

License:MIT License


Languages

Language:JavaScript 91.9%Language:TypeScript 8.1%