MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / createCommentRaw

Function createCommentRaw

apps/web/src/lib/bot/platforms/linear.test.ts:43–68  ·  view source on GitHub ↗
(
  overrides: Partial<LinearCommentRawMessage> = {}
)

Source from the content-addressed store, hash-verified

41} as unknown as LinearAdapter);
42
43function createCommentRaw(
44 overrides: Partial<LinearCommentRawMessage> = {}
45): LinearCommentRawMessage {
46 return {
47 kind: 'comment',
48 organizationId: 'org-abc',
49 comment: {
50 id: 'cmt-1',
51 body: 'Hello Kilo',
52 createdAt: '2026-05-05T07:00:00.000Z',
53 updatedAt: '2026-05-05T07:00:00.000Z',
54 issueId: 'iss-1',
55 parentId: undefined,
56 url: 'https://linear.app/kilo/issue/KILO-1#comment-cmt-1',
57 user: {
58 id: 'usr-1',
59 type: 'user',
60 displayName: 'Remon',
61 fullName: 'Remon Doe',
62 email: undefined,
63 avatarUrl: undefined,
64 },
65 },
66 ...overrides,
67 };
68}
69
70function createMessage(raw: unknown, overrides: Partial<Message> = {}): Message {
71 const id = overrides.id ?? 'cmt-1';

Callers 1

linear.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected