auto-sync: 2026-06-08 22:26:47

This commit is contained in:
cfdaily
2026-06-08 22:26:47 +08:00
parent f32991ddee
commit b5d26da914
+6
View File
@@ -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)