delete_issue_label
Remove a specific label from an issue in an AtomGit repository by specifying the owner, repository, issue number, and label name for precise issue management.
Instructions
Remove a label from an issue in a repository
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| issue_number | Yes | Issue number | |
| name | Yes | Label name | |
| owner | Yes | Repository owner, typically referred to as 'username'. Case-insensitive. | |
| repo | Yes | Repository name. Case-insensitive. |
Implementation Reference
- operations/label.ts:142-154 (handler)The core handler function that sends a DELETE request to the AtomGit API to remove a specific label from an issue.export async function deleteIssueLabel( owner: string, repo: string, issue_number: number, name: string ) { return atomGitRequest( `https://api.atomgit.com/repos/${encodeURIComponent(owner)}/${encodeURIComponent(repo)}/issues/${encodeURIComponent(issue_number)}/labels/${encodeURIComponent(name)}`, { method: "DELETE", } ); }
- operations/label.ts:31-36 (schema)Zod schema defining the input parameters for the delete_issue_label tool.export const DeleteIssueLabelSchema = z.object({ owner: z.string().describe("Repository owner, typically referred to as 'username'. Case-insensitive."), repo: z.string().describe("Repository name. Case-insensitive."), issue_number: z.number().describe("Issue number"), name: z.string().describe("Label name"), });
- index.ts:192-196 (registration)Tool registration in the listTools handler, specifying name, description, and input schema.{ name: "delete_issue_label", description: "Remove a label from an issue in a repository", inputSchema: zodToJsonSchema(label.DeleteIssueLabelSchema), },
- index.ts:485-493 (registration)Dispatch case in the CallToolRequest handler that parses arguments and invokes the deleteIssueLabel function.case "delete_issue_label": { const args = label.DeleteIssueLabelSchema.parse(request.params.arguments); const { owner, repo, issue_number, name } = args; const result = await label.deleteIssueLabel(owner, repo, issue_number, name); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }], }; }