(projectID string, planUID int64, run *store.PlanCheckRunMessage)
| 1041 | } |
| 1042 | |
| 1043 | func convertToPlanCheckRun(projectID string, planUID int64, run *store.PlanCheckRunMessage) *v1pb.PlanCheckRun { |
| 1044 | return &v1pb.PlanCheckRun{ |
| 1045 | Name: common.FormatPlanCheckRun(projectID, planUID), |
| 1046 | Status: convertToPlanCheckRunStatus(run.Status), |
| 1047 | Results: convertToPlanCheckRunResults(run.Result.GetResults()), |
| 1048 | Error: run.Result.Error, |
| 1049 | CreateTime: timestamppb.New(run.CreatedAt), |
| 1050 | } |
| 1051 | } |
| 1052 | |
| 1053 | func convertToPlanSpecs(projectID string, specs []*storepb.PlanConfig_Spec) []*v1pb.Plan_Spec { |
| 1054 | v1Specs := make([]*v1pb.Plan_Spec, len(specs)) |
no test coverage detected