MCPcopy
hub / github.com/promptfoo/promptfoo / buildGeneralCommentBody

Function buildGeneralCommentBody

code-scan-action/src/main.ts:387–396  ·  view source on GitHub ↗
(comment: Comment)

Source from the content-addressed store, hash-verified

385}
386
387function buildGeneralCommentBody(comment: Comment): string {
388 const body = buildCommentBody(comment);
389 const location =
390 comment.file && comment.line
391 ? comment.startLine && comment.startLine !== comment.line
392 ? `${comment.file}:${comment.startLine}-${comment.line}`
393 : `${comment.file}:${comment.line}`
394 : comment.file;
395 return location ? `**${location}**\n\n${body}` : body;
396}
397
398function toReviewComment(comment: Comment) {
399 // GitHub's createReview API requires start_line < line for multi-line comments and

Callers 1

postGeneralCommentsFunction · 0.85

Calls 1

buildCommentBodyFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…