Przeglądaj źródła

increase github list limit

Alexander Belanger 5 lat temu
rodzic
commit
450a0a5fcb
1 zmienionych plików z 3 dodań i 0 usunięć
  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
 	repos, _, err := client.Repositories.List(context.Background(), "", &github.RepositoryListOptions{
+		ListOptions: github.ListOptions{
+			PerPage: 100,
+		},
 		Sort: "updated",
 	})