updated github access mode
This commit is contained in:
parent
6640e8af17
commit
38ee9665f1
@ -46,7 +46,6 @@ func GetConfig(config *Config) error {
|
||||
return err
|
||||
}
|
||||
|
||||
githubconfig.StarsPages = githubsection.Key("stars_pages").String()
|
||||
githubconfig.PageNum, err = githubsection.Key("page_num").Int()
|
||||
if err != nil {
|
||||
return err
|
||||
@ -85,7 +84,7 @@ func GetReposFromGitHub(config *Config) ([]GitHubRepo, error) {
|
||||
var repo []GitHubRepo
|
||||
|
||||
for num := 1; num <= config.githubconfig.PageNum; num++ {
|
||||
url := fmt.Sprintf(config.githubconfig.StarsPages, config.githubconfig.AuthUsername, config.githubconfig.MaxPerPage, num)
|
||||
url := fmt.Sprintf("https://api.github.com/users/%s/starred?per_page=%d&page=%d", config.githubconfig.AuthUsername, config.githubconfig.MaxPerPage, num)
|
||||
fmt.Println(url)
|
||||
|
||||
fmt.Println("Getting GitHub starred repos")
|
||||
|
Loading…
Reference in New Issue
Block a user