(ctx context.Context, serviceId string)
| 51 | } |
| 52 | |
| 53 | func (m *imlReleaseModule) latestStrategyCommits(ctx context.Context, serviceId string) ([]*commit.Commit[strategy.Commit], error) { |
| 54 | list, err := m.strategyService.All(ctx, 2, serviceId) |
| 55 | if err != nil { |
| 56 | return nil, fmt.Errorf("get latest strategy failed:%w", err) |
| 57 | } |
| 58 | for _, s := range list { |
| 59 | err = m.strategyService.CommitStrategy(ctx, strategy_dto.ScopeService, serviceId, s.Id, s) |
| 60 | if err != nil { |
| 61 | return nil, err |
| 62 | } |
| 63 | } |
| 64 | return m.strategyService.ListLatestStrategyCommit(ctx, strategy_dto.ScopeService, serviceId) |
| 65 | } |
| 66 | |
| 67 | func (m *imlReleaseModule) Create(ctx context.Context, serviceId string, input *dto.CreateInput) (string, error) { |
| 68 | proInfo, err := m.projectService.Check(ctx, serviceId, projectRuleMustServer) |
no test coverage detected