새로운 createNote 함수 추가: 이슈 또는 병합 요청에 노트(댓글)를 추가하는 기능 구현 및 관련 스키마 정의
버전 1.0.4로 업데이트
This commit is contained in:
@ -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"),
|
||||
});
|
||||
|
Reference in New Issue
Block a user