* 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)
| 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 | } |
nothing calls this directly
no test coverage detected