@@ -122,12 +122,12 @@ func (s *RepositoryService) ListV2(ctx context.Context, opts scm.RepoListOptions
122
122
return convertRepositoryList (out .Repositories ), res , err
123
123
}
124
124
125
- // ListNamespace returns the user repository list based on searchterm and namespace .
125
+ // ListNamespace returns the orgs' repository list.
126
126
func (s * RepositoryService ) ListNamespace (ctx context.Context , namespace string , opts scm.ListOptions ) ([]* scm.Repository , * scm.Response , error ) {
127
127
path := fmt .Sprintf ("orgs/%s/repos?%s" , namespace , encodeListOptions (opts ))
128
- out := new ( searchRepositoryList )
128
+ out := [] * repository {}
129
129
res , err := s .client .do (ctx , "GET" , path , nil , & out )
130
- return convertRepositoryList (out . Repositories ), res , err
130
+ return convertRepositoryList (out ), res , err
131
131
}
132
132
133
133
// List returns the github app installation repository list.
@@ -230,7 +230,7 @@ func (s *RepositoryService) DeleteHook(ctx context.Context, repo, id string) (*s
230
230
return s .client .do (ctx , "DELETE" , path , nil , nil )
231
231
}
232
232
233
- // helper function to convert from the gogs repository list to
233
+ // helper function to convert from the github repository list to
234
234
// the common repository structure.
235
235
func convertRepositoryList (from []* repository ) []* scm.Repository {
236
236
to := []* scm.Repository {}
@@ -242,7 +242,7 @@ func convertRepositoryList(from []*repository) []*scm.Repository {
242
242
return to
243
243
}
244
244
245
- // helper function to convert from the gogs repository structure
245
+ // helper function to convert from the github repository structure
246
246
// to the common repository structure.
247
247
func convertRepository (from * repository ) * scm.Repository {
248
248
if from == nil {
0 commit comments