Update Github API limits with every response
This commit is contained in:
parent
9c4f281da3
commit
5e5ca78cad
|
@ -50,7 +50,8 @@ func (c *GithubClient) ListRepos() []string {
|
|||
|
||||
for {
|
||||
opt.Page++
|
||||
repos, _, err := c.client.Repositories.ListByOrg(c.owner, opt)
|
||||
repos, resp, err := c.client.Repositories.ListByOrg(c.owner, opt)
|
||||
c.saveResponseMeta(resp)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue