collect-repos
Install
git clone http://github.com/zoroqi/collect-repos
go install / go build
Usage
Usage of ./collect-repos:
-branch string
commit branch
-commitAuthor string
commit author (default "github-actions[bot]")
-commitEmail string
commit email (default "41898282+github-actions[bot]@users.noreply.github.com")
-config string
config
-file string
commit file name
-license string
license name, default username
-repository string
update repository
-token string
github token
-username string
github username
config example
- name: zoroqi
userType: user
file: README.md
- name: google
userType: org
file: google.md
- name: apple
userType: org
file: apple.md
# userType: user or org
# user: collect starred
# org: collect repository
Demo
./collect-repos --username zoroqi > zoroqi-starred.md
Statistics
grep 'pushed_at' README.md | awk -F 'pushed_at' '{print $2}' | awk '{print $1}' | sort | uniq -c
grep 'pushed_at' README.md | awk -F 'pushed_at' '{print $2}' | awk -F '-' '{print $1}' | sort | uniq -c