Skip to content

Commit

Permalink
removed prints
Browse files Browse the repository at this point in the history
  • Loading branch information
vitsafronovici committed Jun 21, 2024
1 parent ced9941 commit 57ce083
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions scm/driver/harness/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,23 +90,14 @@ func (s *gitService) ListCommits(ctx context.Context, repo string, opts scm.Comm
}

func (s *gitService) ListTags(ctx context.Context, repo string, opts scm.ListOptions) ([]*scm.Reference, *scm.Response, error) {
fmt.Printf("ListTags %+v\n", opts)
harnessURI := buildHarnessURI(s.client.account, s.client.organization, s.client.project, repo)
repoId, queryParams, err := getRepoAndQueryParams(harnessURI)
if err != nil {
return nil, nil, err
}
path := fmt.Sprintf("api/v1/repos/%s/tags?%s&%s", repoId, encodeListOptions(opts), queryParams)

fmt.Printf("ListTags path=%s\n", path)

out := []*branch{}
res, err := s.client.do(ctx, "GET", path, nil, &out)

fmt.Printf("ListTags res=%+v\n", res)
fmt.Printf("ListTags err=%+v\n", err)
fmt.Printf("ListTags out=%+v\n", out)

return convertBranchList(out), res, err
}

Expand Down

0 comments on commit 57ce083

Please sign in to comment.