docs: #19 工具链上下文四层改造方案 #4

Closed
pangtong-fujunshi wants to merge 39 commits from docs/19-toolchain-context-layers-only into main
Showing only changes of commit feff387ff7 - Show all commits
-5
View File
@@ -400,11 +400,6 @@ async def _handle_issues(payload: Dict[str, Any]) -> None:
async def _handle_issue_comment(payload: Dict[str, Any]) -> None:
"""处理 issue_comment 事件:CI 失败关键词 → 通知 PR 作者。"""
# DEBUG: dump full payload to file for investigation
_debug_payload_dir = Path(get_data_root()) / "_debug"
_debug_payload_dir.mkdir(parents=True, exist_ok=True)
(_debug_payload_dir / f"issue_comment_payload_{int(time.time())}.json").write_text(
json.dumps(payload, ensure_ascii=False, indent=2))
comment = payload.get("comment")
if not comment or not isinstance(comment, dict):
logger.warning("issue_comment event missing comment field, skipping")