| 104 | } |
| 105 | |
| 106 | func buildUpdateRequest(input SetInput) taskfile.UpdateRequest { |
| 107 | var req taskfile.UpdateRequest |
| 108 | if input.Status != "" { |
| 109 | req.Status = &input.Status |
| 110 | } |
| 111 | if input.Priority != "" { |
| 112 | req.Priority = &input.Priority |
| 113 | } |
| 114 | if input.Effort != "" { |
| 115 | req.Effort = &input.Effort |
| 116 | } |
| 117 | if input.Owner != "" { |
| 118 | req.Owner = &input.Owner |
| 119 | } |
| 120 | if input.Tags != nil { |
| 121 | req.Tags = &input.Tags |
| 122 | } |
| 123 | req.AddTags = input.AddTags |
| 124 | req.RemTags = input.RemTags |
| 125 | req.AddPRs = input.AddPRs |
| 126 | req.RemPRs = input.RemPRs |
| 127 | return req |
| 128 | } |
| 129 | |
| 130 | func isEmptyRequest(req taskfile.UpdateRequest) bool { |
| 131 | return req.Status == nil && |