(projectRoot, filePath)
| 75 | } |
| 76 | |
| 77 | function parseReadinessReport(projectRoot, filePath) { |
| 78 | const content = readText(filePath); |
| 79 | if (!content) return null; |
| 80 | const relativePath = normalizePath(path.relative(projectRoot, filePath)); |
| 81 | const status = lineValue(content, 'Status') || 'unknown'; |
| 82 | const branch = lineValue(content, 'Branch') || path.basename(filePath, path.extname(filePath)); |
| 83 | return { |
| 84 | path: relativePath, |
| 85 | generatedAt: lineValue(content, 'Generated') || null, |
| 86 | status, |
| 87 | ready: status === 'ready', |
| 88 | pr: lineValue(content, 'PR') || null, |
| 89 | branch, |
| 90 | head: lineValue(content, 'Head') || null, |
| 91 | gates: { |
| 92 | prUrl: gateStatus(content, 'Pull request URL'), |
| 93 | git: gateStatus(content, 'Git worktree'), |
| 94 | dashboard: gateStatus(content, 'Dashboard repairs'), |
| 95 | verification: gateStatus(content, 'Verification'), |
| 96 | }, |
| 97 | }; |
| 98 | } |
| 99 | |
| 100 | function readReadinessReports(projectRoot) { |
| 101 | const dir = path.join(projectRoot, '.planning', 'pr-readiness'); |
no test coverage detected