( taskID string, subscriptionID string, )
| 3413 | } |
| 3414 | |
| 3415 | func taskBridgeNotificationSubscriptionDeleteBundle( |
| 3416 | taskID string, |
| 3417 | subscriptionID string, |
| 3418 | ) outputBundle { |
| 3419 | item := struct { |
| 3420 | TaskID string `json:"task_id"` |
| 3421 | SubscriptionID string `json:"subscription_id"` |
| 3422 | Status string `json:"status"` |
| 3423 | }{ |
| 3424 | TaskID: strings.TrimSpace(taskID), |
| 3425 | SubscriptionID: strings.TrimSpace(subscriptionID), |
| 3426 | Status: taskDeletedKey, |
| 3427 | } |
| 3428 | return outputBundle{ |
| 3429 | jsonValue: item, |
| 3430 | human: func() (string, error) { |
| 3431 | return renderHumanSection("Task Bridge Notification Subscription", []keyValue{ |
| 3432 | {Label: taskTaskIDValue, Value: stringOrDash(item.TaskID)}, |
| 3433 | {Label: taskSubscriptionValue, Value: stringOrDash(item.SubscriptionID)}, |
| 3434 | {Label: taskStatusValue, Value: item.Status}, |
| 3435 | }), nil |
| 3436 | }, |
| 3437 | toon: func() (string, error) { |
| 3438 | return renderToonObject( |
| 3439 | "task_bridge_notification_subscription", |
| 3440 | []string{taskTaskIDKey, "subscription_id", taskStatusKey}, |
| 3441 | []string{item.TaskID, item.SubscriptionID, item.Status}, |
| 3442 | ), nil |
| 3443 | }, |
| 3444 | } |
| 3445 | } |
| 3446 | |
| 3447 | func taskRunReviewRequestBundle(record *TaskRunReviewRequestRecord) outputBundle { |
| 3448 | return outputBundle{ |
no test coverage detected