feat(ai-review 對話收斂): 讀 PR review 留言判斷解決狀態並收斂 findings #45

Merged
admin merged 69 commits from develop into master 2026-06-23 08:30:28 +00:00
Showing only changes of commit 1919433df1 - Show all commits
+9
View File
@@ -120,6 +120,15 @@ describe('judgeConversations', () => {
assert.deepEqual(verdicts, [{ idx: 0, verdict: 'open' }]);
});
it('treats an empty AI response array as all open (conservative)', async () => {
const items = [{ idx: 0 }, { idx: 1 }];
const verdicts = await judgeConversations(items, async () => []);
assert.deepEqual(verdicts, [
{ idx: 0, verdict: 'open' },
{ idx: 1, verdict: 'open' },
]);
});
it('ignores entries with unknown verdict or non-integer idx', async () => {
const items = [{ idx: 0 }, { idx: 1 }];
const chatFn = async () => [