From 7cfbd95d96a7828c317fd3c0f8bcad183a962ede Mon Sep 17 00:00:00 2001 From: qiaoxinjiu Date: Thu, 4 Dec 2025 19:54:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B2=A1=E6=9C=89=E4=B8=8D=E5=85=B3=E9=97=AD?= =?UTF-8?q?=E7=9A=84bug=EF=BC=8C=E4=B8=8D=E5=8F=91=E9=80=81=E9=A3=9E?= =?UTF-8?q?=E4=B9=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zendao_tools/handle_bug.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/zendao_tools/handle_bug.py b/zendao_tools/handle_bug.py index 4356836..7751bc9 100644 --- a/zendao_tools/handle_bug.py +++ b/zendao_tools/handle_bug.py @@ -303,8 +303,11 @@ def get_all_bugs_and_send(): # 发送到飞书 print("\n发送消息到飞书...") - success = send_to_feishu(feishu_webhook, message, keyword) - + # 如果没有未打开的bug,则不发送飞书 + if open_bugs != 0: + success = send_to_feishu(feishu_webhook, message, keyword) + else: + success = "" if success: print(f"✅ Bug统计报告已发送到飞书") else: