job51-gitlab-cr-node-jt-1 2.8.1 → 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.
- package/index.js +6 -7
- 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
|
-
//
|
|
993
|
-
const
|
|
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}/
|
|
1002
|
-
{ method: 'POST', data:
|
|
1000
|
+
`/projects/${projectId}/merge_requests/${mergeRequestIid}/notes`,
|
|
1001
|
+
{ method: 'POST', data: noteData }
|
|
1003
1002
|
);
|
|
1004
1003
|
|
|
1005
1004
|
debugLog('汇总报告已成功发布');
|