From 9c17e9b828a575917491d50c2f183f2edad0155f Mon Sep 17 00:00:00 2001 From: Admin Date: Mon, 17 Mar 2025 14:10:47 -0700 Subject: [PATCH] Fix create_note API URL construction to avoid duplicate /api/v4 path --- index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.ts b/index.ts index 3087cc2..ad1dbeb 100644 --- a/index.ts +++ b/index.ts @@ -583,7 +583,7 @@ async function createNote( ): Promise { // ⚙️ 응답 타입은 GitLab API 문서에 따라 조정 가능 const url = new URL( - `${GITLAB_API_URL}/api/v4/projects/${encodeURIComponent( + `${GITLAB_API_URL}/projects/${encodeURIComponent( projectId )}/${noteableType}s/${noteableIid}/notes` // Using plural form (issues/merge_requests) as per GitLab API documentation );