(ctx context.Context, scope string, target string, strategyId string)
| 91 | } |
| 92 | |
| 93 | func (i *imlStrategyService) LatestStrategyCommit(ctx context.Context, scope string, target string, strategyId string) (*commit.Commit[Commit], error) { |
| 94 | key := scope |
| 95 | if target != "" { |
| 96 | key = fmt.Sprintf("%s-%s", scope, target) |
| 97 | } |
| 98 | return i.commitService.Latest(ctx, strategyId, key) |
| 99 | } |
| 100 | |
| 101 | func (i *imlStrategyService) ListLatestStrategyCommit(ctx context.Context, scope string, target string, strategyIds ...string) ([]*commit.Commit[Commit], error) { |
| 102 | key := scope |