We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1840ebe commit 4dcbfbfCopy full SHA for 4dcbfbf
1 file changed
ci/triage-report.js
@@ -111,7 +111,14 @@ async function fetchAll() {
111
console.log(`Report: in-scope=${stats.total} sla=${stats.sla} regressions=${stats.regressions} new7=${stats.new7}`);
112
113
if (process.env.GITHUB_STEP_SUMMARY) {
114
- fs.appendFileSync(process.env.GITHUB_STEP_SUMMARY, `## ${REPORT_TITLE} \u2014 ${date}\n\n\`\`\`\n${text}\n\`\`\`\n`);
+ const tickRuns = [...text.matchAll(/`+/g)].map(m => m[0].length);
115
+ const fence = '`'.repeat(Math.max(3, ...tickRuns) + 1);
116
+ fs.appendFileSync(process.env.GITHUB_STEP_SUMMARY, `## ${REPORT_TITLE} — ${date}
117
+
118
+${fence}
119
+${text}
120
121
+`);
122
}
123
if (process.env.WRITE_FILES === 'true') {
124
fs.writeFileSync('triage-report.html', html);
0 commit comments