MCPcopy Create free account
hub / github.com/TraderAlice/OpenAlice / addComment

Function addComment

ui/src/api/issues.ts:195–200  ·  view source on GitHub ↗

* Human write path: append a comment (author fixed to "human" server-side) to * the issue body's `## Comments` section. Returns the updated detail — the * returned `body` already carries the new comment, so the existing markdown * renderer surfaces it with no client-side re-parsing.

(wsId: string, id: string, text: string)

Source from the content-addressed store, hash-verified

193 * renderer surfaces it with no client-side re-parsing.
194 */
195 async addComment(wsId: string, id: string, text: string): Promise<IssueDetail> {
196 return fetchJson<IssueDetail>(
197 `/api/issues/${encodeURIComponent(wsId)}/${encodeURIComponent(id)}/comments`,
198 { method: 'POST', headers, body: JSON.stringify({ text }) },
199 )
200 },
201}

Callers

nothing calls this directly

Calls 1

fetchJsonFunction · 0.90

Tested by

no test coverage detected