From 64e6c7c0ddc824ca495072817dd77299c11f4ec6 Mon Sep 17 00:00:00 2001 From: Anubhav Dhawan Date: Thu, 23 Apr 2026 22:06:41 +0530 Subject: [PATCH] fix(tier-check): add missing markdown table headers for repository health (#239) Fixes a bug where the Markdown output format for the Repository Health section lacked a table header, causing it to render as raw text instead of a table on GitHub. --- src/tier-check/output.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/tier-check/output.ts b/src/tier-check/output.ts index 9e7aa57..f08a47d 100644 --- a/src/tier-check/output.ts +++ b/src/tier-check/output.ts @@ -121,8 +121,7 @@ export function formatMarkdown(scorecard: TierScorecard): string { lines.push(''); lines.push('## Check Results'); lines.push(''); - lines.push('| Check | Status | Detail |'); - lines.push('|-------|--------|--------|'); + // Conformance matrix const matrix = buildConformanceMatrix( c.conformance as ConformanceResult, @@ -176,6 +175,8 @@ export function formatMarkdown(scorecard: TierScorecard): string { } } lines.push(''); + lines.push('| Check | Status | Detail |'); + lines.push('|-------|--------|--------|'); lines.push( `| Labels | ${c.labels.status} | ${c.labels.present}/${c.labels.required} required labels${c.labels.missing.length > 0 ? ` (missing: ${c.labels.missing.join(', ')})` : ''} |` );