(items []TaskRunReviewRecord)
| 3521 | } |
| 3522 | |
| 3523 | func taskRunReviewListBundle(items []TaskRunReviewRecord) outputBundle { |
| 3524 | return listBundle( |
| 3525 | items, |
| 3526 | items, |
| 3527 | "Task Run Reviews", |
| 3528 | []string{ |
| 3529 | taskReviewValue, |
| 3530 | taskTaskValue, |
| 3531 | taskRunValue, |
| 3532 | taskStatusValue, |
| 3533 | taskOutcomeValue, |
| 3534 | "Reviewer Session", |
| 3535 | taskUpdatedValue, |
| 3536 | }, |
| 3537 | "task_run_reviews", |
| 3538 | []string{ |
| 3539 | "review_id", |
| 3540 | taskTaskIDKey, |
| 3541 | taskRunIDKey, |
| 3542 | taskStatusKey, |
| 3543 | cliOutcomeKey, |
| 3544 | "reviewer_session_id", |
| 3545 | taskUpdatedAtKey, |
| 3546 | }, |
| 3547 | func(item TaskRunReviewRecord) []string { |
| 3548 | return []string{ |
| 3549 | stringOrDash(item.ReviewID), |
| 3550 | stringOrDash(item.TaskID), |
| 3551 | stringOrDash(item.RunID), |
| 3552 | stringOrDash(string(item.Status)), |
| 3553 | stringOrDash(string(item.Outcome)), |
| 3554 | stringOrDash(item.ReviewerSessionID), |
| 3555 | stringOrDash(formatTime(item.UpdatedAt)), |
| 3556 | } |
| 3557 | }, |
| 3558 | func(item TaskRunReviewRecord) []string { |
| 3559 | return []string{ |
| 3560 | item.ReviewID, |
| 3561 | item.TaskID, |
| 3562 | item.RunID, |
| 3563 | string(item.Status), |
| 3564 | string(item.Outcome), |
| 3565 | item.ReviewerSessionID, |
| 3566 | formatTime(item.UpdatedAt), |
| 3567 | } |
| 3568 | }, |
| 3569 | ) |
| 3570 | } |
| 3571 | |
| 3572 | func taskExecutionBundle(item *TaskExecutionRecord) outputBundle { |
| 3573 | return outputBundle{ |
no test coverage detected