job51-gitlab-cr-node-jt-1 2.1.5 → 2.1.6
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 +0 -7
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -137,13 +137,6 @@ ${diffObject.diff}`;
|
|
|
137
137
|
const review_result = await this.reviewDiffWithClaudeUsingFile(tmpFileName);
|
|
138
138
|
const blockObj = { ...diffObject, review_result, temp_file_path: tmpFileName };
|
|
139
139
|
|
|
140
|
-
// 立即发布评论
|
|
141
|
-
debugLog(`🤖 AI 代码审查结果: ${blockObj.review_result}`);
|
|
142
|
-
await this.postSingleCommentToGitLab(projectId, mergeRequestIid, {
|
|
143
|
-
diff_info: blockObj,
|
|
144
|
-
block_index: blockObj.block_index,
|
|
145
|
-
review_result: blockObj.review_result,
|
|
146
|
-
});
|
|
147
140
|
// 检查审查结果中是否包含严重问题,只有包含严重问题才发布评论
|
|
148
141
|
if (blockObj.review_result && blockObj.review_result.includes('🔴 严重问题')) {
|
|
149
142
|
// 立即发布评论
|