diff --git a/motor/discovery/github/github.go b/motor/discovery/github/github.go index 5a5ed22f73..7fdfa66745 100644 --- a/motor/discovery/github/github.go +++ b/motor/discovery/github/github.go @@ -119,13 +119,13 @@ func (r *Resolver) Resolve(ctx context.Context, root *asset.Asset, pCfg *provide return nil, err } - listOpts := &github.RepositoryListByOrgOptions{ + listOpts := &github.RepositoryListOptions{ ListOptions: github.ListOptions{PerPage: 100}, Type: "all", } allRepos := []*github.Repository{} for { - repos, resp, err := p.Client().Repositories.List(context.Background(), org.GetLogin(), &github.RepositoryListOptions{}) + repos, resp, err := p.Client().Repositories.List(context.Background(), org.GetLogin(), listOpts) if err != nil { if strings.Contains(err.Error(), "404") { return nil, nil