check_if_user_is_assignable
Verify whether a user can be assigned to an issue in a specific AtomGit repository by providing the repository owner, name, and assignee username.
Instructions
Check if a user can be assigned to an issue in a AtomGit repository
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| assignee | Yes | Username to be checked | |
| owner | Yes | Repository owner | |
| repo | Yes | Repository name |
Implementation Reference
- operations/issues.ts:219-230 (handler)The core handler function that executes the tool logic by making a GET request to the AtomGit API to check if the specified user is assignable to issues in the repository.export async function checkIfUserIsAssignable( owner: string, repo: string, assignee: string ) { return atomGitRequest( `https://api.atomgit.com/repos/${encodeURIComponent(owner)}/${encodeURIComponent(repo)}/assignees/${encodeURIComponent(assignee)}`, { method: "GET", } ); }
- operations/issues.ts:63-67 (schema)Zod schema defining the input validation for the tool: owner, repo, and assignee parameters.export const CheckAssigneeSchema = z.object({ owner: z.string().describe("Repository owner"), repo: z.string().describe("Repository name"), assignee: z.string().describe("Username to be checked"), });
- index.ts:106-110 (registration)Tool registration in the listTools response, specifying the name, description, and input schema.{ name: "check_if_user_is_assignable", description: "Check if a user can be assigned to an issue in a AtomGit repository", inputSchema: zodToJsonSchema(issues.CheckAssigneeSchema), },
- index.ts:371-379 (registration)Dispatch logic in the CallToolRequest handler that parses arguments and invokes the tool handler function.case "check_if_user_is_assignable": { const args = issues.CheckAssigneeSchema.parse(request.params.arguments); const { owner, repo, assignee } = args; const result = await issues.checkIfUserIsAssignable(owner, repo, assignee); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }], }; }