MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / ListLatestStrategyCommit

Method ListLatestStrategyCommit

service/strategy/iml.go:101–107  ·  view source on GitHub ↗
(ctx context.Context, scope string, target string, strategyIds ...string)

Source from the content-addressed store, hash-verified

99}
100
101func (i *imlStrategyService) ListLatestStrategyCommit(ctx context.Context, scope string, target string, strategyIds ...string) ([]*commit.Commit[Commit], error) {
102 key := scope
103 if target != "" {
104 key = fmt.Sprintf("%s-%s", scope, target)
105 }
106 return i.commitService.ListLatest(ctx, key, strategyIds...)
107}
108
109func (i *imlStrategyService) ListStrategyCommit(ctx context.Context, commitIds ...string) ([]*commit.Commit[Commit], error) {
110 if len(commitIds) < 1 {

Callers

nothing calls this directly

Calls 1

ListLatestMethod · 0.65

Tested by

no test coverage detected