MCPcopy Create free account
hub / github.com/compozy/agh / taskRunReviewRows

Function taskRunReviewRows

internal/cli/task.go:3504–3521  ·  view source on GitHub ↗
(review *TaskRunReviewRecord)

Source from the content-addressed store, hash-verified

3502}
3503
3504func taskRunReviewRows(review *TaskRunReviewRecord) []keyValue {
3505 return []keyValue{
3506 {Label: taskReviewValue, Value: stringOrDash(review.ReviewID)},
3507 {Label: taskTaskValue, Value: stringOrDash(review.TaskID)},
3508 {Label: taskRunValue, Value: stringOrDash(review.RunID)},
3509 {Label: taskStatusValue, Value: stringOrDash(string(review.Status))},
3510 {Label: taskOutcomeValue, Value: stringOrDash(string(review.Outcome))},
3511 {Label: taskReasonValue, Value: stringOrDash(review.Reason)},
3512 {Label: "Delivery", Value: stringOrDash(review.DeliveryID)},
3513 {Label: "Missing Work", Value: stringOrDash(compactJSON(review.MissingWork))},
3514 {Label: "Next Guidance", Value: stringOrDash(review.NextRoundGuidance)},
3515 {Label: "Reviewer Session", Value: stringOrDash(review.ReviewerSessionID)},
3516 {Label: "Reviewed By", Value: stringOrDash(formatTaskActorPtr(review.ReviewedBy))},
3517 {Label: "Requested", Value: stringOrDash(formatTime(review.RequestedAt))},
3518 {Label: "Reviewed", Value: stringOrDash(formatTime(review.ReviewedAt))},
3519 {Label: taskUpdatedValue, Value: stringOrDash(formatTime(review.UpdatedAt))},
3520 }
3521}
3522
3523func taskRunReviewListBundle(items []TaskRunReviewRecord) outputBundle {
3524 return listBundle(

Callers 2

taskRunReviewBundleFunction · 0.85

Calls 4

stringOrDashFunction · 0.85
formatTaskActorPtrFunction · 0.85
formatTimeFunction · 0.85
compactJSONFunction · 0.70

Tested by

no test coverage detected