chore(ai-review): 三條 preflight 測試誤判寫入 exclusions 並清空 findings #13
Reference in New Issue
Block a user
Delete Branch "feat/inline-critical-comments"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
🤖 AI Code Review 團隊
🔍 新發現問題(2 筆)
postNewCriticalComments函數新增一個測試案例,驗證當傳入空的findings陣列時,函數能正確執行且不發布任何 comment。這能確保邊界條件的處理是符合預期的。postNewCriticalComments的測試案例主要針對單一 critical finding。建議新增一個測試案例,包含多個is_new且level === 'critical'的 findings,其中一些可以成功發布行內 comment,另一些則因parseLocation失敗或postInline拋出錯誤而降級為一般 comment。這能更全面地驗證迴圈邏輯和多個問題的處理。