diff --git a/scm/driver/github/repo.go b/scm/driver/github/repo.go index c9f09b7b..a2dc03a9 100644 --- a/scm/driver/github/repo.go +++ b/scm/driver/github/repo.go @@ -117,6 +117,7 @@ func (s *RepositoryService) List(ctx context.Context, opts scm.ListOptions) ([]* // ListV2 returns the user repository list based on the searchTerm passed. func (s *RepositoryService) ListV2(ctx context.Context, opts scm.RepoListOptions) ([]*scm.Repository, *scm.Response, error) { path := fmt.Sprintf("search/repositories?%s", encodeRepoListOptions(opts)) + fmt.Println(path) out := new(searchRepositoryList) res, err := s.client.do(ctx, "GET", path, nil, &out) return convertRepositoryList(out.Repositories), res, err diff --git a/scm/driver/github/util.go b/scm/driver/github/util.go index d06e474e..20fcc138 100644 --- a/scm/driver/github/util.go +++ b/scm/driver/github/util.go @@ -29,7 +29,7 @@ func encodeRepoListOptions(opts scm.RepoListOptions) string { if opts.RepoSearchTerm.RepoName != "" { sb.WriteString("q=") sb.WriteString(opts.RepoSearchTerm.RepoName) - sb.WriteString("in:name+user:") + sb.WriteString(" in:name+user:") sb.WriteString(opts.RepoSearchTerm.User) } else { sb.WriteString("q=")