auto-sync: 2026-06-08 22:26:47
This commit is contained in:
@@ -372,6 +372,12 @@ async def _handle_issue_comment(payload: Dict[str, Any]) -> None:
|
|||||||
if not issue or not isinstance(issue, dict):
|
if not issue or not isinstance(issue, dict):
|
||||||
logger.warning("issue_comment event missing issue field, skipping")
|
logger.warning("issue_comment event missing issue field, skipping")
|
||||||
return
|
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)
|
repo = _repo_fullname(payload)
|
||||||
issue_number = issue.get("number", 0)
|
issue_number = issue.get("number", 0)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user