create_pull_request_reply
Reply to comments on pull requests to facilitate code review discussions and collaboration on AtomGit repositories.
Instructions
Reply to a comment on a pull request
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| owner | Yes | ||
| repo | Yes | ||
| pull_number | Yes | ||
| comment_id | Yes | ||
| body | Yes |
Implementation Reference
- operations/pull.ts:87-95 (handler)Core implementation of the create_pull_request_reply tool: makes POST request to AtomGit API to create a reply to a pull request comment.export async function createPullRequestReply(owner: string, repo: string, pull_number: number, comment_id: string, body: string) { return atomGitRequest( `https://api.atomgit.com/repos/${encodeURIComponent(owner)}/${encodeURIComponent(repo)}/pulls/${encodeURIComponent(pull_number)}/comments/${encodeURIComponent(comment_id)}/replies`, { method: "POST", body, } ); }
- index.ts:405-411 (handler)Dispatcher handler case in the main tool request handler that parses arguments and calls the createPullRequestReply function.case "create_pull_request_reply": { const args = pull.CreatePullRequestReplySchema.parse(request.params.arguments); const result = await pull.createPullRequestReply(args.owner, args.repo, args.pull_number, args.comment_id, args.body); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }], }; }
- operations/pull.ts:30-36 (schema)Zod input schema defining parameters for the create_pull_request_reply tool.export const CreatePullRequestReplySchema = z.object({ owner: z.string(), repo: z.string(), pull_number: z.number(), comment_id: z.string(), body: z.string(), });
- index.ts:147-151 (registration)Registration of the create_pull_request_reply tool in the list returned by ListToolsRequestHandler.{ name: "create_pull_request_reply", description: "Reply to a comment on a pull request", inputSchema: zodToJsonSchema(pull.CreatePullRequestReplySchema), },