MCPcopy Create free account
hub / github.com/CopilotKit/OpenTag / issueFromValues

Function issueFromValues

app/modals/file-issue.tsx:29–36  ·  view source on GitHub ↗
(values: Record<string, unknown>)

Source from the content-addressed store, hash-verified

27/** Map a modal submission's `values` (keyed by input id) to a typed issue. */
28export function issueFromValues(values: Record<string, unknown>) {
29 return {
30 title: str(values.title),
31 description: str(values.description),
32 type: str(values.type, "bug"),
33 priority: str(values.priority, "Medium"),
34 };
35}
36
37/**
38 * Handle a `/file-issue` modal submission: validate, then file via the agent
39 * (Linear MCP) so the existing confirm-before-write + filed-card flow is reused.

Callers 2

fileIssueSubmitFunction · 0.85

Calls 1

strFunction · 0.85

Tested by

no test coverage detected