ci/github-script/commits: harden code block rendering

To avoid rendering issues when diffing a markdown file with these
markers in context, just increase the markers length.
This commit is contained in:
Wolfgang Walther
2025-07-20 16:06:25 +02:00
parent 4a0c2c58a2
commit 524a47b2b4

View File

@@ -220,9 +220,9 @@ module.exports = async function ({ github, context, core, dry }) {
}
core.summary.addRaw('<details><summary>Show diff</summary>')
core.summary.addRaw('\n\n```diff', true)
core.summary.addRaw('\n\n``````````diff', true)
core.summary.addRaw(truncated.join('\n'), true)
core.summary.addRaw('```', true)
core.summary.addRaw('``````````', true)
core.summary.addRaw('</details>')
}