hotfix(ci): separate ai review evidence blocks

This commit is contained in:
Tam Nhu Tran
2026-04-02 03:20:26 -04:00
parent 0be4ef7a0d
commit 80e22515b0
2 changed files with 106 additions and 1 deletions
@@ -704,12 +704,15 @@ function renderDetailedFindings(findings) {
lines.push(`**${SEVERITY_SUMMARY_LABELS[severity]} (${scopedFindings.length})**`, '');
for (const [index, finding] of scopedFindings.entries()) {
const snippets = Array.isArray(finding.snippets) ? finding.snippets : [];
lines.push(`#### ${index + 1}. ${renderInlineText(finding.title)}`);
lines.push(`- Location: ${renderCode(renderFindingReference(finding))}`);
lines.push(`- Impact: ${renderInlineText(finding.why)}`);
lines.push(`- Problem: ${renderInlineText(finding.what)}`);
lines.push(`- Fix: ${renderInlineText(finding.fix)}`);
lines.push(...renderFindingSnippets(finding.snippets));
if (snippets.length > 0) {
lines.push('', ...renderFindingSnippets(snippets));
}
lines.push('');
}
}