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

Function compactComment

src/clawsweeper.ts:3246–3257  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

3244}
3245
3246function compactComment(value: unknown): unknown {
3247 const comment = asRecord(value);
3248 return {
3249 id: comment.id,
3250 author: login(comment.user),
3251 authorAssociation: normalizeAuthorAssociation(comment.author_association),
3252 url: comment.html_url,
3253 createdAt: comment.created_at,
3254 updatedAt: comment.updated_at,
3255 body: truncateText(comment.body, 6000),
3256 };
3257}
3258
3259const CLAWSWEEPER_BOT_AUTHORS = new Set(
3260 [

Callers

nothing calls this directly

Calls 4

loginFunction · 0.85
truncateTextFunction · 0.85
asRecordFunction · 0.70

Tested by

no test coverage detected