change per_page value from 200 to 100
This commit is contained in:
parent
e73f6501f0
commit
6d15fe004e
@ -73,7 +73,7 @@ func (p *GitHubProvider) hasOrg(accessToken string) (bool, error) {
|
|||||||
pn := 1
|
pn := 1
|
||||||
for {
|
for {
|
||||||
params := url.Values{
|
params := url.Values{
|
||||||
"per_page": {"200"},
|
"per_page": {"100"},
|
||||||
"page": {strconv.Itoa(pn)},
|
"page": {strconv.Itoa(pn)},
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -148,7 +148,7 @@ func (p *GitHubProvider) hasOrgAndTeam(accessToken string) (bool, error) {
|
|||||||
pn := 1
|
pn := 1
|
||||||
for {
|
for {
|
||||||
params := url.Values{
|
params := url.Values{
|
||||||
"per_page": {"200"},
|
"per_page": {"100"},
|
||||||
"page": {strconv.Itoa(pn)},
|
"page": {strconv.Itoa(pn)},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ func testGitHubBackend(payload []string) *httptest.Server {
|
|||||||
pathToQueryMap := map[string][]string{
|
pathToQueryMap := map[string][]string{
|
||||||
"/user": {""},
|
"/user": {""},
|
||||||
"/user/emails": {""},
|
"/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(
|
return httptest.NewServer(http.HandlerFunc(
|
||||||
|
Loading…
Reference in New Issue
Block a user