@zereight/mcp-gitlab 1.0.6 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.js +2 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -345,7 +345,8 @@ async function updateMergeRequest(projectId, mergeRequestIid, options) {
|
|
|
345
345
|
async function createNote(projectId, noteableType, // 'issue' 또는 'merge_request' 타입 명시
|
|
346
346
|
noteableIid, body) {
|
|
347
347
|
// ⚙️ 응답 타입은 GitLab API 문서에 따라 조정 가능
|
|
348
|
-
const url = new URL(`${GITLAB_API_URL}/
|
|
348
|
+
const url = new URL(`${GITLAB_API_URL}/projects/${encodeURIComponent(projectId)}/${noteableType}s/${noteableIid}/notes` // Using plural form (issues/merge_requests) as per GitLab API documentation
|
|
349
|
+
);
|
|
349
350
|
const response = await fetch(url.toString(), {
|
|
350
351
|
method: "POST",
|
|
351
352
|
headers: DEFAULT_HEADERS,
|