https://github.com/lpabon/ghstats
GitHub Stats utility program. Shows number of reviews and authored PRs from a user per repo
https://github.com/lpabon/ghstats
github pr review statistics stats
Last synced: 28 days ago
JSON representation
GitHub Stats utility program. Shows number of reviews and authored PRs from a user per repo
- Host: GitHub
- URL: https://github.com/lpabon/ghstats
- Owner: lpabon
- License: mit
- Created: 2017-08-29T00:11:21.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-31T19:24:51.000Z (almost 9 years ago)
- Last Synced: 2025-01-12T21:25:26.823Z (over 1 year ago)
- Topics: github, pr, review, statistics, stats
- Language: Python
- Size: 10.7 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ghstats
GitHub Stats utility program. Shows number of reviews and authored PRs from a user per repo.
You may need a [GitHub Token](https://github.com/blog/1509-personal-api-tokens).
### Example
```
$ ./ghstats.py -h
usage:
Examples:
$ ghstats.py --request-user=$APIUSER \
--request-token=$APITOKEN \
--user=lpabon \
--repos=heketi/heketi \
--repos=coreos/quartermaster \
--date-from=2016-01-01 \
--date-to=2017-04-01
GitHub Stats utility program. Shows number of reviews and authored PRs from a
user per repo
optional arguments:
-h, --help show this help message and exit
--request-user REQUEST_USER
Owner of request token
--request-token REQUEST_TOKEN
Api GitHub Token
--user USER Get stats from Github for this user
--repos REPOS Use multiple times to specify multiple repos. Ex:
kubernetes/kubernetes
--date-from DATE_FROM
Start on this date of format YYYY-MM-DD. If date-to is
not provided, stats will be returned from the date
provided to today
--date-to DATE_TO End on this date of format YYYY-MM-DD. If date-from is
not provided, then stats will be returned from until
the date provided
-v, --verbose Verbose
$ ./ghstats.py --request-user=$APIUSER \
--request-token=$APITOKEN \
--user=lpabon \
--repos=heketi/heketi \
--repos=coreos/quartermaster \
--date-from=2016-01-01 \
--date-to=2017-04-01
lpabon heketi/heketi: Reviews(186) Author(132)
lpabon coreos/quartermaster: Reviews(11) Author(45)
Total: Reviews(197) Author(177)
```