(status store.PlanCheckRunStatus)
| 1233 | } |
| 1234 | |
| 1235 | func convertToPlanCheckRunStatus(status store.PlanCheckRunStatus) v1pb.PlanCheckRun_Status { |
| 1236 | switch status { |
| 1237 | case store.PlanCheckRunStatusCanceled: |
| 1238 | return v1pb.PlanCheckRun_CANCELED |
| 1239 | case store.PlanCheckRunStatusDone: |
| 1240 | return v1pb.PlanCheckRun_DONE |
| 1241 | case store.PlanCheckRunStatusFailed: |
| 1242 | return v1pb.PlanCheckRun_FAILED |
| 1243 | case store.PlanCheckRunStatusRunning: |
| 1244 | return v1pb.PlanCheckRun_RUNNING |
| 1245 | default: |
| 1246 | return v1pb.PlanCheckRun_STATUS_UNSPECIFIED |
| 1247 | } |
| 1248 | } |
| 1249 | |
| 1250 | func convertToPlanCheckRunResults(results []*storepb.PlanCheckRunResult_Result) []*v1pb.PlanCheckRun_Result { |
| 1251 | var resultsV1 []*v1pb.PlanCheckRun_Result |
no outgoing calls
no test coverage detected