Skip to content

Commit

Permalink
Increase repository limit to 100
Browse files Browse the repository at this point in the history
  • Loading branch information
canack committed Jan 2, 2024
1 parent becffd8 commit 74ba761
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/github/repository/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,15 @@ func (r *Repo) TestConnection(ctx context.Context) error {

func (r *Repo) ListRepositories(ctx context.Context) ([]GithubRepository, error) {
// List repositories for the authenticated user
// set limit to 100
var repositories []GithubRepository
err := r.do(ctx, nil, &repositories, requestOptions{
method: http.MethodGet,
path: githubAPIURL + "/user/repos",
contentType: "application/json",
queryParams: map[string]string{
"visibility": "private",
"per_page": "100",
},
})
if err != nil {
Expand Down

0 comments on commit 74ba761

Please sign in to comment.