(comment: Comment)
| 385 | } |
| 386 | |
| 387 | function 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 | |
| 398 | function toReviewComment(comment: Comment) { |
| 399 | // GitHub's createReview API requires start_line < line for multi-line comments and |
no test coverage detected
searching dependent graphs…