Add debug logging to createNote function

This commit is contained in:
Admin
2025-03-17 14:14:48 -07:00
parent 68c332c0a7
commit 51641d7b9b
2 changed files with 10 additions and 2 deletions

View File

@ -588,6 +588,10 @@ async function createNote(
)}/${noteableType}s/${noteableIid}/notes` // Using plural form (issues/merge_requests) as per GitLab API documentation
);
console.log(`DEBUG - createNote - URL: ${url.toString()}`);
console.log(`DEBUG - createNote - projectId: ${projectId}, noteableType: ${noteableType}, noteableIid: ${noteableIid}`);
console.log(`DEBUG - createNote - GITLAB_API_URL: ${GITLAB_API_URL}`);
const response = await fetch(url.toString(), {
method: "POST",
headers: DEFAULT_HEADERS,