MCPcopy
hub / github.com/openclaw/clawsweeper / writeCommentPayload

Function writeCommentPayload

src/clawsweeper.ts:14920–14927  ·  view source on GitHub ↗
(number: number, body: string)

Source from the content-addressed store, hash-verified

14918}
14919
14920function writeCommentPayload(number: number, body: string): string {
14921 const commentFile = join(ROOT, ".artifacts", `comment-${number}.md`);
14922 ensureDir(dirname(commentFile));
14923 writeFileSync(commentFile, body, "utf8");
14924 const commentPayloadFile = join(ROOT, ".artifacts", `comment-${number}.json`);
14925 writeFileSync(commentPayloadFile, JSON.stringify({ body }), "utf8");
14926 return commentPayloadFile;
14927}
14928
14929function upsertReviewComment(
14930 number: number,

Callers 7

postAssistCommentFunction · 0.85
upsertReviewCommentFunction · 0.85
postProofNudgeCommentFunction · 0.85

Calls 1

ensureDirFunction · 0.70

Tested by

no test coverage detected