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.
This commit is contained in:
Anubhav Dhawan 2026-04-23 22:06:41 +05:30 • committed by GitHub
commit 64e6c7c0dd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -121,8 +121,7 @@ export function formatMarkdown(scorecard: TierScorecard): string {
lines.push(''); lines.push('');
lines.push('## Check Results'); lines.push('## Check Results');
lines.push(''); lines.push('');
lines.push('| Check | Status | Detail |');
lines.push('|-------|--------|--------|');
// Conformance matrix // Conformance matrix
const matrix = buildConformanceMatrix( const matrix = buildConformanceMatrix(
c.conformance as ConformanceResult, c.conformance as ConformanceResult,
@ -176,6 +175,8 @@ export function formatMarkdown(scorecard: TierScorecard): string {
} }
} }
lines.push(''); lines.push('');
lines.push('| Check | Status | Detail |');
lines.push('|-------|--------|--------|');
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(', ')})` : ''} |` `| Labels | ${c.labels.status} | ${c.labels.present}/${c.labels.required} required labels${c.labels.missing.length > 0 ? ` (missing: ${c.labels.missing.join(', ')})` : ''} |`
); );