From 6d15fe004eabcad382737976d3b686db7132becf Mon Sep 17 00:00:00 2001 From: Akshay Pratinav Date: Fri, 15 Mar 2019 08:00:20 -0700 Subject: [PATCH] change per_page value from 200 to 100 --- providers/github.go | 4 ++-- providers/github_test.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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(