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

Function update

ui/src/api/issues.ts:178–187  ·  view source on GitHub ↗

* Human write path: patch one issue's editable fields (any subset of * status / priority / assignee / agent). `agent: null` clears the scheduled * runtime override so the workspace default applies. Returns the SAME detail * shape as `getDetail` so the caller can apply it directly (refetch-f

(
    wsId: string,
    id: string,
    patch: { status?: IssueStatus; priority?: IssuePriority; assignee?: string; agent?: string | null },
  )

Source from the content-addressed store, hash-verified

176 * Working-tree write on the server, no commit.
177 */
178 async update(
179 wsId: string,
180 id: string,
181 patch: { status?: IssueStatus; priority?: IssuePriority; assignee?: string; agent?: string | null },
182 ): Promise<IssueDetail> {
183 return fetchJson<IssueDetail>(
184 `/api/issues/${encodeURIComponent(wsId)}/${encodeURIComponent(id)}`,
185 { method: 'PATCH', headers, body: JSON.stringify(patch) },
186 )
187 },
188
189 /**
190 * Human write path: append a comment (author fixed to "human" server-side) to

Callers

nothing calls this directly

Calls 1

fetchJsonFunction · 0.90

Tested by

no test coverage detected