Merge pull request 'debug: commit/push 失敗時顯示詳細錯誤' (#56) from feat/refactor/kiro/1 into feat/refactor/main

Reviewed-on: jiantw83/code-review#56
This commit is contained in:
2026-05-11 10:04:49 +00:00
+2 -1
View File
@@ -18,6 +18,7 @@ export async function commitAndPush(workspace) {
const commitHash = result.commit?.sha?.slice(0, 7) || 'unknown'; const commitHash = result.commit?.sha?.slice(0, 7) || 'unknown';
console.log(` ✅ persisted findings commit=${commitHash} push=${process.env.PR_HEAD_BRANCH}`); console.log(` ✅ persisted findings commit=${commitHash} push=${process.env.PR_HEAD_BRANCH}`);
} catch (e) { } catch (e) {
console.log(` ⚠️ Runner failed: commit/push 失敗: ${e.message}`); const detail = e.response?.data ? JSON.stringify(e.response.data) : e.message;
console.log(` ⚠️ Runner failed: commit/push 失敗: ${e.response?.status || ''} ${detail}`);
} }
} }