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:
parent
70cc5efbad
commit
64e6c7c0dd
1 changed files with 3 additions and 2 deletions
|
|
@ -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(', ')})` : ''} |`
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue