job51-gitlab-cr-node-skill-prompt-optimize 1.0.9 → 1.1.0
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 +3 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -69,7 +69,7 @@ class GitLabCodeReviewer {
|
|
|
69
69
|
// 将模板中的{{CODE_CHANGES}}替换为实际的diff内容
|
|
70
70
|
templateContent = templateContent.replace('{{CODE_CHANGES}}', diff.diff);
|
|
71
71
|
// 将行信息添加到模版中
|
|
72
|
-
templateContent = templateContent.replace('{{LINE_INFO}}', diff.
|
|
72
|
+
templateContent = templateContent.replace('{{LINE_INFO}}', diff.line_msg);
|
|
73
73
|
break;
|
|
74
74
|
} catch (error) {
|
|
75
75
|
continue; // 尝试下一个路径
|
|
@@ -293,7 +293,8 @@ ${diff.diff}
|
|
|
293
293
|
new_start,
|
|
294
294
|
new_count,
|
|
295
295
|
firstLineFirstChar
|
|
296
|
-
}
|
|
296
|
+
},
|
|
297
|
+
line_msg:headerMatch
|
|
297
298
|
};
|
|
298
299
|
});
|
|
299
300
|
}
|