diff --git a/providers/github.go b/providers/github.go index eecf5df..7bbc8b9 100644 --- a/providers/github.go +++ b/providers/github.go @@ -73,7 +73,7 @@ func (p *GitHubProvider) hasOrg(accessToken string) (bool, error) { pn := 1 for { params := url.Values{ - "per_page": {"200"}, + "per_page": {"100"}, "page": {strconv.Itoa(pn)}, } @@ -148,7 +148,7 @@ func (p *GitHubProvider) hasOrgAndTeam(accessToken string) (bool, error) { pn := 1 for { params := url.Values{ - "per_page": {"200"}, + "per_page": {"100"}, "page": {strconv.Itoa(pn)}, } diff --git a/providers/github_test.go b/providers/github_test.go index 1a66a59..3d63551 100644 --- a/providers/github_test.go +++ b/providers/github_test.go @@ -31,7 +31,7 @@ func testGitHubBackend(payload []string) *httptest.Server { pathToQueryMap := map[string][]string{ "/user": {""}, "/user/emails": {""}, - "/user/orgs": {"page=1&per_page=200", "page=2&per_page=200", "page=3&per_page=200"}, + "/user/orgs": {"page=1&per_page=100", "page=2&per_page=100", "page=3&per_page=100"}, } return httptest.NewServer(http.HandlerFunc(