MCPcopy Create free account
hub / github.com/SethGammon/Citadel / renderReport

Function renderReport

scripts/worktree-readiness.js:46–61  ·  view source on GitHub ↗
(report)

Source from the content-addressed store, hash-verified

44}
45
46function renderReport(report) {
47 const lines = [];
48 lines.push('Worktree Readiness');
49 lines.push('='.repeat(40));
50 lines.push(`Status: ${report.status}`);
51 lines.push(`Worktree: ${report.worktreePath}`);
52 if (report.branch) lines.push(`Branch: ${report.branch}`);
53 lines.push(`Blocks Fleet: ${report.blockFleet ? 'yes' : 'no'}`);
54 if (report.file) lines.push(`Report: ${report.file}`);
55 lines.push('');
56 lines.push('CHECKS');
57 for (const check of report.checks) {
58 lines.push(` ${check.status.toUpperCase()} ${check.name} - ${check.detail}`);
59 }
60 return `${lines.join('\n')}\n`;
61}
62
63function renderList(reports) {
64 const lines = [];

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected