fix(審查流程): 修正 bot 跳過、JSON 驗證與排除比對邊界
CI / 1. BUILD (pull_request) Successful in 3s
CI / 2. TEST (pull_request) Has been skipped
CI / 3. RESULT (pull_request) Has been skipped

This commit is contained in:
2026-07-11 12:18:24 +00:00
parent 268cd05211
commit 8f909e5397
10 changed files with 94 additions and 15 deletions
+2 -1
View File
@@ -69,7 +69,8 @@ export function parseLocation(location) {
if (trimmed.includes(',')) return null;
const match = trimmed.match(/^(.+?):(\d+)(?:-\d+)?$/);
if (!match) return null;
return { file: match[1], line: Number(match[2]) };
const line = Number(match[2]);
return line > 0 ? { file: match[1], line } : null;
}
/** 行內 comment 內容:等級/審查員/建議 */