From 85c17ccc8e0e004d4e5ee0fcc5c89ada8ddcc1de Mon Sep 17 00:00:00 2001 From: Anubhav Dhawan Date: Tue, 21 Apr 2026 04:09:42 +0530 Subject: [PATCH] fix(tier-check): add missing markdown table headers for repository health 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 9e7aa571..f08a47d6 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(', ')})` : ''} |` );