MCPcopy
hub / github.com/openclaw/clawsweeper / writeReports

Function writeReports

src/repair/conflict-self-heal.ts:522–530  ·  view source on GitHub ↗
(report: LooseRecord)

Source from the content-addressed store, hash-verified

520}
521
522function writeReports(report: LooseRecord) {
523 const resultsDir = path.join(repoRoot(), "results");
524 fs.mkdirSync(resultsDir, { recursive: true });
525 fs.writeFileSync(
526 path.join(resultsDir, "conflict-self-heal.json"),
527 `${JSON.stringify(report, null, 2)}\n`,
528 );
529 fs.writeFileSync(path.join(resultsDir, "conflict-self-heal.md"), renderMarkdown(report));
530}
531
532function renderMarkdown(report: LooseRecord) {
533 const rows = (report.prs ?? [])

Callers 1

Calls 2

repoRootFunction · 0.70
renderMarkdownFunction · 0.70

Tested by

no test coverage detected