From 5e5ca78cade9c74da42af49b880cbc563dc5cf7c Mon Sep 17 00:00:00 2001 From: Gregory Eremin Date: Sun, 11 Jan 2015 21:10:11 +0700 Subject: [PATCH] Update Github API limits with every response --- steward/github/github.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/steward/github/github.go b/steward/github/github.go index 2f9be4c..4a1b8e0 100644 --- a/steward/github/github.go +++ b/steward/github/github.go @@ -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) }