( markdown: string, comment: Record<string, unknown> | undefined, body: string, )
| 14904 | } |
| 14905 | |
| 14906 | function updateReviewCommentMetadata( |
| 14907 | markdown: string, |
| 14908 | comment: Record<string, unknown> | undefined, |
| 14909 | body: string, |
| 14910 | ): string { |
| 14911 | let next = replaceFrontMatterValue(markdown, "review_comment_sha256", sha256(body)); |
| 14912 | const id = commentId(comment); |
| 14913 | const url = commentUrl(comment); |
| 14914 | if (id !== null) next = replaceFrontMatterValue(next, "review_comment_id", String(id)); |
| 14915 | if (url) next = replaceFrontMatterValue(next, "review_comment_url", url); |
| 14916 | next = replaceFrontMatterValue(next, "review_comment_synced_at", new Date().toISOString()); |
| 14917 | return next; |
| 14918 | } |
| 14919 | |
| 14920 | function writeCommentPayload(number: number, body: string): string { |
| 14921 | const commentFile = join(ROOT, ".artifacts", `comment-${number}.md`); |
no test coverage detected