tutorial for myself to write in golang and to use go-github
git clone https://github.com/yshnb/github-stat.git
cd ./github-stat
cp config.json.dist config.json
- fill in valid
accessToken
generated in Github
After, you can run the below command
$ go run main.go --metrics=star google/go-github
target repository: google/go-github
metrics: star
star: 1079
like this.
For now, it can only get the numbers of github star in each repository.
My plan ....
- issue
- pull_requests (open/closed)
- code changes(additions/deletions)
- etc.