From b5d26da9140b78f5b64e20467e18ac3c9470fd55 Mon Sep 17 00:00:00 2001 From: cfdaily Date: Mon, 8 Jun 2026 22:26:47 +0800 Subject: [PATCH] auto-sync: 2026-06-08 22:26:47 --- src/api/toolchain_routes.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/api/toolchain_routes.py b/src/api/toolchain_routes.py index 930efb5..774af5b 100644 --- a/src/api/toolchain_routes.py +++ b/src/api/toolchain_routes.py @@ -372,6 +372,12 @@ async def _handle_issue_comment(payload: Dict[str, Any]) -> None: if not issue or not isinstance(issue, dict): logger.warning("issue_comment event missing issue field, skipping") return + + # 已关闭的 Issue/PR 不再发送 CI 失败通知 + if issue.get("state") == "closed": + logger.debug("Skipping CI failure notification for closed issue #%s", issue.get("number")) + return + repo = _repo_fullname(payload) issue_number = issue.get("number", 0)