job51-gitlab-cr-node-skill-prompt-optimize 1.6.0 → 1.6.1

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.
Files changed (3) hide show
  1. package/index.js +2 -0
  2. package/log +758 -691
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -506,6 +506,8 @@ ${diffObject.diff}`;
506
506
  await this.createDiffDiscussion(projectId, mergeRequestIid, payload);
507
507
  debugLog(`评论已发布到文件 ${file_path_with_line} 的相关变更区域`);
508
508
  } catch (error) {
509
+ // 打印详细的错误响应信息
510
+ debugLog(`GitLab API 错误详情:${JSON.stringify(error.response?.data || error.message)}`);
509
511
  console.error(`发布评论到文件 ${file_path_with_line} 的变更区域失败,改用一般讨论:`, error.message);
510
512
  await this.createGeneralDiscussion(projectId, mergeRequestIid, file_path_with_line, reviewContent);
511
513
  debugLog(`评论已发布到文件 ${file_path_with_line} (作为一般讨论)`);