(record *TaskRunReviewVerdictRecord)
| 3476 | } |
| 3477 | |
| 3478 | func taskRunReviewVerdictBundle(record *TaskRunReviewVerdictRecord) outputBundle { |
| 3479 | return outputBundle{ |
| 3480 | jsonValue: *record, |
| 3481 | human: func() (string, error) { |
| 3482 | rows := taskRunReviewRows(&record.Review) |
| 3483 | if record.ContinuationRun != nil { |
| 3484 | rows = append( |
| 3485 | rows, |
| 3486 | keyValue{ |
| 3487 | Label: "Continuation Run", |
| 3488 | Value: stringOrDash(record.ContinuationRun.ID), |
| 3489 | }, |
| 3490 | ) |
| 3491 | } |
| 3492 | rows = append( |
| 3493 | rows, |
| 3494 | keyValue{Label: "Circuit Opened", Value: strconv.FormatBool(record.CircuitOpened)}, |
| 3495 | ) |
| 3496 | return renderHumanSection("Task Run Review Verdict", rows), nil |
| 3497 | }, |
| 3498 | toon: func() (string, error) { |
| 3499 | return renderJSONPreview(record) |
| 3500 | }, |
| 3501 | } |
| 3502 | } |
| 3503 | |
| 3504 | func taskRunReviewRows(review *TaskRunReviewRecord) []keyValue { |
| 3505 | return []keyValue{ |
no test coverage detected