(comment: Comment)
| 371 | } |
| 372 | |
| 373 | function buildCommentBody(comment: Comment): string { |
| 374 | let body = formatSeverity(comment.severity) + comment.finding; |
| 375 | |
| 376 | if (comment.fix) { |
| 377 | body += `\n\n<details>\n<summary>💡 Suggested Fix</summary>\n\n${comment.fix}\n</details>`; |
| 378 | } |
| 379 | |
| 380 | if (comment.aiAgentPrompt) { |
| 381 | body += `\n\n<details>\n<summary>🤖 AI Agent Prompt</summary>\n\n${comment.aiAgentPrompt}\n</details>`; |
| 382 | } |
| 383 | |
| 384 | return body; |
| 385 | } |
| 386 | |
| 387 | function buildGeneralCommentBody(comment: Comment): string { |
| 388 | const body = buildCommentBody(comment); |
no test coverage detected
searching dependent graphs…