[feat]: [CDS-73030]: added comments

pull/260/head
Adithya Viswanathan 11 months ago
parent 64a614ce5d
commit aefd6d1f0a

@ -60,6 +60,8 @@ func (s *gitService) ListBranches(ctx context.Context, repo string, opts scm.Lis
}
func (s *gitService) ListBranchesV2(ctx context.Context, repo string, opts scm.BranchListOptions) ([]*scm.Reference, *scm.Response, error) {
// Gitea doesnt provide support listing based on searchTerm
// Hence calling the ListBranches
return s.ListBranches(ctx, repo, opts.PageListOptions)
}

@ -61,6 +61,8 @@ func (s *gitService) ListBranches(ctx context.Context, repo string, _ scm.ListOp
}
func (s *gitService) ListBranchesV2(ctx context.Context, repo string, opts scm.BranchListOptions) ([]*scm.Reference, *scm.Response, error) {
// Gitee doesnt provide support listing based on searchTerm
// Hence calling the ListBranches
return s.ListBranches(ctx, repo, opts.PageListOptions)
}

@ -54,6 +54,8 @@ func (s *gitService) ListBranches(ctx context.Context, repo string, opts scm.Lis
}
func (s *gitService) ListBranchesV2(ctx context.Context, repo string, opts scm.BranchListOptions) ([]*scm.Reference, *scm.Response, error) {
// Github doesnt provide support listing based on searchTerm
// Hence calling the ListBranches
return s.ListBranches(ctx, repo, opts.PageListOptions)
}

@ -55,6 +55,8 @@ func (s *gitService) ListBranches(ctx context.Context, repo string, _ scm.ListOp
}
func (s *gitService) ListBranchesV2(ctx context.Context, repo string, opts scm.BranchListOptions) ([]*scm.Reference, *scm.Response, error) {
// Gogs doesnt provide support listing based on searchTerm
// Hence calling the ListBranches
return s.ListBranches(ctx, repo, opts.PageListOptions)
}

@ -57,6 +57,8 @@ func (s *gitService) ListBranches(ctx context.Context, repo string, opts scm.Lis
}
func (s *gitService) ListBranchesV2(ctx context.Context, repo string, opts scm.BranchListOptions) ([]*scm.Reference, *scm.Response, error) {
// Harness doesnt provide support listing based on searchTerm
// Hence calling the ListBranches
return s.ListBranches(ctx, repo, opts.PageListOptions)
}

@ -72,6 +72,8 @@ type (
// ListBranches returns a list of git branches.
ListBranches(ctx context.Context, repo string, opts ListOptions) ([]*Reference, *Response, error)
// ListBranchesV2 returns a list of git branches based on the searchTerm passed.
ListBranchesV2(ctx context.Context, repo string, opts BranchListOptions) ([]*Reference, *Response, error)
// ListCommits returns a list of git commits.

Loading…
Cancel
Save