feat(ai-review 對話收斂): 未修復但已在舊問題者改為解決對話、不重複加回
This commit is contained in:
+5
-3
@@ -46,10 +46,12 @@ async function main() {
|
||||
}
|
||||
|
||||
step('Step2', 'PR 對話收斂');
|
||||
let reconcile = { resolvedFindings: [], carriedFindings: [], resolvedCount: 0, unresolvedCount: 0 };
|
||||
let reconcile = { resolvedFindings: [], carriedFindings: [], resolvedCount: 0, duplicateCount: 0, unresolvedCount: 0 };
|
||||
try {
|
||||
reconcile = await reconcileConversations();
|
||||
ok(`Step2 完成: resolved=${reconcile.resolvedCount} unresolved=${reconcile.unresolvedCount} 加回=${reconcile.carriedFindings.length}`);
|
||||
// 載入來源分支既有的舊問題,供對話收斂判斷「未修復但已存在於舊問題」的情況
|
||||
const oldFindingsForReconcile = loadOldFindings(WORKSPACE);
|
||||
reconcile = await reconcileConversations({ oldFindings: oldFindingsForReconcile });
|
||||
ok(`Step2 完成: resolved=${reconcile.resolvedCount} duplicate=${reconcile.duplicateCount} 加回=${reconcile.carriedFindings.length}`);
|
||||
} catch (e) {
|
||||
warn(`Step2 對話收斂失敗(繼續執行): ${e.message}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user