優化 Step2:改用 skill RPG 攻防腳色系統(新增 Mage 邏輯角色、Step3/4 套 Paladin 裁決人設) #15

Merged
jiantw83 merged 14 commits from develop into master 2026-06-16 09:05:55 +00:00
Showing only changes of commit e03b1c7045 - Show all commits
+16 -1
View File
@@ -1 +1,16 @@
[] [
{
"level": "warning",
"role": "Maya",
"location": "app/comments.test.js:84",
"suggestion": "請為 `postNewCriticalComments` 函數新增一個測試案例,驗證當傳入空的 `findings` 陣列時,函數能正確執行且不發布任何 comment。這能確保邊界條件的處理是符合預期的。",
"is_new": true
},
{
"level": "warning",
"role": "Maya",
"location": "app/comments.test.js:84",
"suggestion": "目前 `postNewCriticalComments` 的測試案例主要針對單一 critical finding。建議新增一個測試案例,包含多個 `is_new` 且 `level === 'critical'` 的 findings,其中一些可以成功發布行內 comment,另一些則因 `parseLocation` 失敗或 `postInline` 拋出錯誤而降級為一般 comment。這能更全面地驗證迴圈邏輯和多個問題的處理。",
"is_new": true
}
]