assign_issue
Assign users to issues in AtomGit repositories to delegate tasks and track responsibility.
Instructions
Assign users to an issue in a AtomGit repository
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| owner | Yes | Repository owner | |
| repo | Yes | Repository name | |
| issue_number | Yes | Issue number | |
| assignee | Yes | List of assignees to be assigned |
Implementation Reference
- index.ts:331-339 (handler)Handler for the 'assign_issue' tool: parses arguments using AssignIssueSchema, calls issues.setAssignee, and returns the JSON result.case "assign_issue": { const args = issues.AssignIssueSchema.parse(request.params.arguments); const { owner, repo, issue_number, assignee } = args; const result = await issues.setAssignee(owner, repo, issue_number, assignee); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }], }; }
- operations/issues.ts:19-24 (schema)Zod schema defining the input parameters for the assign_issue tool.export const AssignIssueSchema = z.object({ owner: z.string().describe("Repository owner"), repo: z.string().describe("Repository name"), issue_number: z.number().describe("Issue number"), assignee: z.string().describe("List of assignees to be assigned"), });
- index.ts:86-90 (registration)Tool registration in the ListTools response, specifying name, description, and input schema.{ name: "assign_issue", description: "Assign users to an issue in a AtomGit repository", inputSchema: zodToJsonSchema(issues.AssignIssueSchema), },
- operations/issues.ts:189-204 (helper)Helper function that makes the POST request to the AtomGit API to assign a user to an issue.export async function setAssignee( owner: string, repo: string, issue_number: number, assignee: string ) { return atomGitRequest( `https://api.atomgit.com/repos/${encodeURIComponent(owner)}/${encodeURIComponent(repo)}/issues/${encodeURIComponent(issue_number)}/assignees`, { method: "POST", body: { assignee, }, } ); }