job51-gitlab-cr-node-jt-1 2.8.2 → 2.8.3

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 (2) hide show
  1. package/index.js +6 -7
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -989,17 +989,16 @@ ${allReportsText}
989
989
  debugLog(`开始发布汇总报告到 MR ${mergeRequestIid}`);
990
990
 
991
991
  // 构造评论 Payload
992
- // 设置 resolvable: false,使汇总报告评论不需要被 resolve
993
- const discussionData = {
994
- body: summaryReport,
995
- resolvable: false
992
+ // 使用 Notes API 发布普通注释类型评论(无 resolve 按钮)
993
+ const noteData = {
994
+ body: summaryReport
996
995
  };
997
996
 
998
- // 调用 GitLab API 发布一般讨论评论
997
+ // 调用 GitLab Notes API 发布普通注释
999
998
  // 使用已有的 gitlabClient 实例
1000
999
  await this.gitlabClient.callGitLabAPI(
1001
- `/projects/${projectId}/merge_requests/${mergeRequestIid}/discussions`,
1002
- { method: 'POST', data: discussionData }
1000
+ `/projects/${projectId}/merge_requests/${mergeRequestIid}/notes`,
1001
+ { method: 'POST', data: noteData }
1003
1002
  );
1004
1003
 
1005
1004
  debugLog('汇总报告已成功发布');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "job51-gitlab-cr-node-jt-1",
3
- "version": "2.8.2",
3
+ "version": "2.8.3",
4
4
  "description": "GitLab merge request code review tool with AI-powered analysis and project context support",
5
5
  "main": "index.js",
6
6
  "bin": {