새로운 createNote 함수 추가: 이슈 또는 병합 요청에 노트(댓글)를 추가하는 기능 구현 및 관련 스키마 정의

버전 1.0.4로 업데이트
This commit is contained in:
simple
2025-02-20 05:58:06 +09:00
parent f143ca0023
commit 54e3e020c7
3 changed files with 46 additions and 2 deletions

View File

@ -346,3 +346,11 @@ export const UpdateMergeRequestSchema = GetMergeRequestSchema.extend({
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"),
});