job51-gitlab-cr-node-skill-prompt-optimize 1.5.9 → 1.6.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 +2 -1
- package/log +691 -812
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -462,11 +462,12 @@ ${diffObject.diff}`;
|
|
|
462
462
|
}
|
|
463
463
|
|
|
464
464
|
// 如果 lineInfo 里的 firstLineFirstChar 为 +,则 targetLine 为 new_path 的 new_start 行;为 -,则 targetLine 为 old_path 的 old_start 行
|
|
465
|
+
// GitLab API 要求:diff 评论只能传递 new_line 或 old_line 中的一个,不能同时传递
|
|
465
466
|
let targetLine = lineInfo.firstLineFirstChar === '+'
|
|
466
467
|
? { new_line: lineInfo.new_start, new_path: diff_info.new_path }
|
|
467
468
|
: lineInfo.firstLineFirstChar === '-'
|
|
468
469
|
? { old_line: lineInfo.old_start, old_path: diff_info.old_path }
|
|
469
|
-
: { new_line: lineInfo.new_start, new_path: diff_info.new_path
|
|
470
|
+
: { new_line: lineInfo.new_start, new_path: diff_info.new_path };
|
|
470
471
|
|
|
471
472
|
// 尝试从审查结果中解析更精确的行号信息(从 LINE_INFO 标签)
|
|
472
473
|
const parsedLineInfo = lineInfoTag ? this.parseLineInfoFromReviewResult(lineInfoTag) : null;
|