forked from yshnb/github-stat
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,30 @@ | ||
# github-stat-script | ||
|
||
tutorial for myself to write in golang and to use [go-github](https://github.com/google/go-github) | ||
|
||
## Usage | ||
|
||
1. `git clone https://github.com/yshnb/github-stat-script.git` | ||
2. `cd ./github-stat-script` | ||
3. fill in valid `accessToken` from 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. | ||
|
||
## Available metrics | ||
|
||
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. | ||
|