(record taskpkg.Reference)
| 1001 | } |
| 1002 | |
| 1003 | func taskReferencePayloadFromReference(record taskpkg.Reference) apicontract.TaskReferencePayload { |
| 1004 | return apicontract.TaskReferencePayload{ |
| 1005 | ID: record.ID, |
| 1006 | Identifier: record.Identifier, |
| 1007 | Title: record.Title, |
| 1008 | Status: record.Status, |
| 1009 | Priority: record.Priority, |
| 1010 | Owner: cloneOwnership(record.Owner), |
| 1011 | Scope: record.Scope, |
| 1012 | WorkspaceID: record.WorkspaceID, |
| 1013 | } |
| 1014 | } |
| 1015 | |
| 1016 | func taskRunSummaryPayloadFromSummary(summary *taskpkg.RunSummary) *apicontract.TaskRunSummaryPayload { |
| 1017 | if summary == nil { |
no test coverage detected