promotime

Well, it's perf season. Run this to get your GitHub stats over a given period of time.

Usage no npm install needed!

<script type="module">
  import promotime from 'https://cdn.skypack.dev/promotime';
</script>

README

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

A tool for gathering GitHub stats!

npm version Build Status codecov Known Vulnerabilities semantic-release Code Style: Google

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