README.md 업데이트: 새로운 create_note 함수 추가 및 관련 스키마 정의
This commit is contained in:
10
schemas.ts
10
schemas.ts
@ -388,6 +388,15 @@ export const GetMergeRequestDiffsSchema = GetMergeRequestSchema.extend({
|
||||
view: z.enum(["inline", "parallel"]).optional().describe("Diff view type"),
|
||||
});
|
||||
|
||||
export const CreateNoteSchema = z.object({
|
||||
project_id: z.string().describe("Project ID or namespace/project_path"),
|
||||
noteable_type: z
|
||||
.enum(["issue", "merge_request"])
|
||||
.describe("Type of noteable (issue or merge_request)"),
|
||||
noteable_iid: z.number().describe("IID of the issue or merge request"),
|
||||
body: z.string().describe("Note content"),
|
||||
});
|
||||
|
||||
// Export types
|
||||
export type GitLabAuthor = z.infer<typeof GitLabAuthorSchema>;
|
||||
export type GitLabFork = z.infer<typeof GitLabForkSchema>;
|
||||
@ -418,3 +427,4 @@ export type GitLabSearchResponse = z.infer<typeof GitLabSearchResponseSchema>;
|
||||
export type GitLabMergeRequestDiff = z.infer<
|
||||
typeof GitLabMergeRequestDiffSchema
|
||||
>;
|
||||
export type CreateNoteOptions = z.infer<typeof CreateNoteSchema>;
|
||||
|
Reference in New Issue
Block a user