boxuk / albot

Albot is a small command line tool built as an attempt to help us with our Development process
http://boxuk.github.io/albot/
MIT License
6 stars 1 forks source link

Add stats command #8

Open jenkoian opened 11 years ago

jenkoian commented 11 years ago

albot stats http://url/to/repo

Which would return something like..

Project start: 3rd September 2012
Total commits: 123
No. of PR's: 123
LOC: 1234
Top contributor: Ben Davies

Not sure if all of the above is available from the github API, but I imagine some stuff would be

athieriot commented 11 years ago

You can have quite a lot :)

http://developer.github.com/v3/repos/statistics/

jenkoian commented 11 years ago

Yeah looked at that, don't need it per week or anything thought, I think just global statistics, is that possible?

athieriot commented 11 years ago

Are they limiting to a year?

http://developer.github.com/v3/repos/statistics/#get-the-last-year-of-commit-activity-data

jenkoian commented 11 years ago

Yeah, but we may be able to get total commits etc from the repo endpoint