diff --git a/pkg/server/biz/scm/gitlab/gitlabv3.go b/pkg/server/biz/scm/gitlab/gitlabv3.go index e73ae10b3..da39e12b1 100644 --- a/pkg/server/biz/scm/gitlab/gitlabv3.go +++ b/pkg/server/biz/scm/gitlab/gitlabv3.go @@ -94,7 +94,7 @@ func (g *V3) listReposInner(listAll bool) ([]scm.Repository, error) { // ListBranches lists the branches for specified repo. // Only return first 20 branches, will not support listing all branches as v3 api has been deprecated. func (g *V3) ListBranches(repo string) ([]string, error) { - branches, resp, err := g.client.Branches.ListBranches(repo, nil) + branches, resp, err := g.client.Branches.ListBranches(repo) if err != nil { log.Errorf("Fail to list branches for %s", repo) return nil, convertGitlabV3Error(err, resp) @@ -111,7 +111,7 @@ func (g *V3) ListBranches(repo string) ([]string, error) { // ListTags lists the tags for specified repo. // Only return first 20 tags, will not support listing all tags as v3 api has been deprecated. func (g *V3) ListTags(repo string) ([]string, error) { - tags, resp, err := g.client.Tags.ListTags(repo, nil) + tags, resp, err := g.client.Tags.ListTags(repo) if err != nil { log.Errorf("Fail to list tags for %s", repo) return nil, convertGitlabV3Error(err, resp)