Explorar o código

increase github list limit

Alexander Belanger %!s(int64=5) %!d(string=hai) anos
pai
achega
450a0a5fcb
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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",
 	})
 	})