(t *model.Task)
| 145 | } |
| 146 | |
| 147 | func buildWorklogEntries(t *model.Task) []WorklogEntryJSON { |
| 148 | wlPath := worklog.WorklogPath(t.FilePath, t.ID) |
| 149 | if !worklog.Exists(wlPath) { |
| 150 | return []WorklogEntryJSON{} |
| 151 | } |
| 152 | wl, err := worklog.ParseWorklog(wlPath) |
| 153 | if err != nil { |
| 154 | return []WorklogEntryJSON{} |
| 155 | } |
| 156 | entries := make([]WorklogEntryJSON, len(wl.Entries)) |
| 157 | for i, e := range wl.Entries { |
| 158 | entries[i] = WorklogEntryJSON{ |
| 159 | Timestamp: e.Timestamp.Format("2006-01-02T15:04:05Z07:00"), |
| 160 | Content: e.Content, |
| 161 | } |
| 162 | } |
| 163 | return entries |
| 164 | } |
| 165 | |
| 166 | func generateBoardFiles(boardDir string, tasks []*model.Task) error { |
| 167 | for _, groupBy := range []string{"status", "priority", "effort", "type", "group", "tag"} { |
no outgoing calls
no test coverage detected