fix(審查流程): 修復 AI 去重超量、clone 失敗誤持久化、留言行號漏 new_position
This commit is contained in:
+7
-1
@@ -209,7 +209,13 @@ async function main() {
|
||||
step('Step10', '記憶區 Commit/Push');
|
||||
const reviewOutcome = filtered.some(f => f.level === 'critical') ? 'failure' : 'success';
|
||||
input(`review outcome=${reviewOutcome}`);
|
||||
await commitAndPush(WORKSPACE, repoDir || WORKSPACE, undefined, undefined, reviewOutcome);
|
||||
// clone 失敗(repoDir 為 undefined)時不可把 WORKSPACE(非來源分支 git repo)當 repoDir,
|
||||
// 否則會在錯誤的工作目錄嘗試 commit/push,findings/exclusions 無法持久化到 PR 分支。
|
||||
if (!repoDir) {
|
||||
warn('來源分支 clone 失敗,略過 findings/exclusions 持久化(不以 WORKSPACE 當 repoDir)');
|
||||
} else {
|
||||
await commitAndPush(WORKSPACE, repoDir, undefined, undefined, reviewOutcome);
|
||||
}
|
||||
|
||||
// Step11 嚴重問題把關
|
||||
step('Step11', '嚴重問題把關');
|
||||
|
||||
Reference in New Issue
Block a user