We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c67ca3b commit d52e984Copy full SHA for d52e984
src/ci/check_lines.ts
@@ -26,7 +26,8 @@ async function generateStats(root = 'src') {
26
function printMarkdownTable(data: any[]) {
27
if (!data.length) return 'No changes'
28
const keys = Object.keys(data[0])
29
- console.log(`| ${keys.join(' | ')} |\n| ${keys.map(() => '---').join(' | ')} |`)
+ const alignments = keys.map((key) => (typeof data[0][key] === 'number' ? '---:' : ':---'))
30
+ console.log(`| ${keys.join(' | ')} |\n| ${alignments.join(' | ')} |`)
31
console.log(data.map((row) => `| ${keys.map((key) => row[key]).join(' | ')} |`).join('\n'))
32
}
33
0 commit comments