소스 검색

Merge pull request #427 from porter-dev/beta.3.increase-github-list-limit

increase github list limit
abelanger5 5 년 전
부모
커밋
381bb5dfb2
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      server/api/git_repo_handler.go

+ 3 - 0
server/api/git_repo_handler.go

@@ -72,6 +72,9 @@ func (app *App) HandleListRepos(w http.ResponseWriter, r *http.Request) {
 
 
 	// list all repositories for specified user
 	// list all repositories for specified user
 	repos, _, err := client.Repositories.List(context.Background(), "", &github.RepositoryListOptions{
 	repos, _, err := client.Repositories.List(context.Background(), "", &github.RepositoryListOptions{
+		ListOptions: github.ListOptions{
+			PerPage: 100,
+		},
 		Sort: "updated",
 		Sort: "updated",
 	})
 	})