@@ -39,22 +39,22 @@ func (s *repositoryService) FindPerms(ctx context.Context, repo string) (*scm.Pe
3939 return convertRepository (out ).Perm , res , err
4040}
4141
42- func (s * repositoryService ) List (ctx context.Context , _ scm.ListOptions ) ([]* scm.Repository , * scm.Response , error ) {
43- path := fmt .Sprintf ("api/v1/user/repos" )
42+ func (s * repositoryService ) List (ctx context.Context , opts scm.ListOptions ) ([]* scm.Repository , * scm.Response , error ) {
43+ path := fmt .Sprintf ("api/v1/user/repos?%s" , encodeListOptions ( opts ) )
4444 out := []* repository {}
4545 res , err := s .client .do (ctx , "GET" , path , nil , & out )
4646 return convertRepositoryList (out ), res , err
4747}
4848
49- func (s * repositoryService ) ListHooks (ctx context.Context , repo string , _ scm.ListOptions ) ([]* scm.Hook , * scm.Response , error ) {
50- path := fmt .Sprintf ("api/v1/repos/%s/hooks" , repo )
49+ func (s * repositoryService ) ListHooks (ctx context.Context , repo string , opts scm.ListOptions ) ([]* scm.Hook , * scm.Response , error ) {
50+ path := fmt .Sprintf ("api/v1/repos/%s/hooks?%s " , repo , encodeListOptions ( opts ) )
5151 out := []* hook {}
5252 res , err := s .client .do (ctx , "GET" , path , nil , & out )
5353 return convertHookList (out ), res , err
5454}
5555
56- func (s * repositoryService ) ListStatus (ctx context.Context , repo string , ref string , _ scm.ListOptions ) ([]* scm.Status , * scm.Response , error ) {
57- path := fmt .Sprintf ("api/v1/repos/%s/statuses/%s" , repo , ref )
56+ func (s * repositoryService ) ListStatus (ctx context.Context , repo string , ref string , opts scm.ListOptions ) ([]* scm.Status , * scm.Response , error ) {
57+ path := fmt .Sprintf ("api/v1/repos/%s/statuses/%s?%s " , repo , ref , encodeListOptions ( opts ) )
5858 out := []* status {}
5959 res , err := s .client .do (ctx , "GET" , path , nil , & out )
6060 return convertStatusList (out ), res , err
0 commit comments