job51-gitlab-cr-node-jt-1 1.9.9 → 2.0.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.
- package/index.js +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -126,8 +126,8 @@ class GitLabCodeReviewer {
|
|
|
126
126
|
fs.writeFileSync(fileName, diffObject.diff);
|
|
127
127
|
|
|
128
128
|
// 审核当前块(传入临时的文件而不是直接的diff内容)
|
|
129
|
-
const review_result = await this.reviewDiffWithClaudeUsingFile(
|
|
130
|
-
const blockObj = { ...diffObject, review_result, temp_file_path:
|
|
129
|
+
const review_result = await this.reviewDiffWithClaudeUsingFile(tmpFileName);
|
|
130
|
+
const blockObj = { ...diffObject, review_result, temp_file_path: tmpFileName };
|
|
131
131
|
|
|
132
132
|
// 立即发布评论
|
|
133
133
|
debugLog(`🤖 AI代码审查结果: ${blockObj.review_result}`);
|