Migrate to remotes interface

This commit is contained in:
2024-01-16 12:48:42 -05:00
parent 5337ea544b
commit e7f8b86f72
13 changed files with 160 additions and 283 deletions

View File

@ -18,6 +18,7 @@ func NewGitlabApi(info *remote.RemoteInfo) (*gitlab.Client, error) {
func (r *GitlabRemote) GetNumProjects(opts *remote.RemoteQueryOpts) int {
listOpts := *DefaultListOpts
listOpts.PerPage = 1
listOpts.Page = 1
listOpts.Simple = gitlab.Ptr[bool](true)
_, resp, err := r.api.Projects.ListProjects(&listOpts)
if err != nil {