(changesDir: string, changeName: string)
| 25 | } |
| 26 | |
| 27 | export async function getTaskProgressForChange(changesDir: string, changeName: string): Promise<TaskProgress> { |
| 28 | const tasksPath = path.join(changesDir, changeName, 'tasks.md'); |
| 29 | try { |
| 30 | const content = await fs.readFile(tasksPath, 'utf-8'); |
| 31 | return countTasksFromContent(content); |
| 32 | } catch { |
| 33 | return { total: 0, completed: 0 }; |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | export function formatTaskStatus(progress: TaskProgress): string { |
| 38 | if (progress.total === 0) return 'No tasks'; |
no test coverage detected