https://github.com/jaebradley/gh-stats-cli
PR contribution statistics (authored / commented) from the command line
https://github.com/jaebradley/gh-stats-cli
command-line github nodejs pull-requests
Last synced: 10 months ago
JSON representation
PR contribution statistics (authored / commented) from the command line
- Host: GitHub
- URL: https://github.com/jaebradley/gh-stats-cli
- Owner: jaebradley
- License: mit
- Created: 2018-09-13T08:11:49.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-06-07T21:24:37.000Z (over 3 years ago)
- Last Synced: 2025-03-29T10:28:22.366Z (10 months ago)
- Topics: command-line, github, nodejs, pull-requests
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/@jaebradley/gh-stats-cli
- Size: 3 MB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `gh-stats-cli`
[](https://greenkeeper.io/)
[](https://travis-ci.org/jaebradley/gh-stats-cli)
[](https://codecov.io/gh/jaebradley/gh-stats-cli)
[](https://www.npmjs.com/package/@jaebradley/gh-stats-cli)
[](https://www.npmjs.com/package/@jaebradley/gh-stats-cli)

Get simple `GitHub` `PR` contribution statistics (`PR`s authored and commented on) via the command line.
## Installation
```bash
npm install --global @jaebradley/gh-stats-cli
```
## Usage
* You'll need [a `GitHub` personal access token](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/) 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

