promotime
v3.0.3
Published
Well, it's perf season. Run this to get your GitHub stats over a given period of time.
Downloads
31
Readme
P-R-O-M-O-T-I-M-E
A tool for gathering GitHub stats!
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