没有bug时不发送消息

This commit is contained in:
qiaoxinjiu
2025-12-17 17:55:38 +08:00
parent 7cfbd95d96
commit dab958754a

View File

@@ -51,7 +51,7 @@ def get_all_bugs_and_send():
password = "Qiao123456"
# 飞书配置
feishu_webhook = "https://open.feishu.cn/open-apis/bot/v2/hook/c7288ada-1c0c-472a-b652-a475a9586302"
feishu_webhook = "https://open.feishu.cn/open-apis/bot/v2/hook/3442300f-c839-4aaa-9510-bf173c50851b"
keyword = "bug"
print("获取禅道Bug列表")
@@ -321,7 +321,7 @@ def get_all_bugs_and_send():
message += f"🔗 禅道地址: {base_url}"
print(message)
send_to_feishu(feishu_webhook, message, keyword)
# send_to_feishu(feishu_webhook, message, keyword)
def send_simple_report():
@@ -331,7 +331,7 @@ def send_simple_report():
password = "Qiao123456"
# 飞书配置
feishu_webhook = "https://open.feishu.cn/open-apis/bot/v2/hook/c7288ada-1c0c-472a-b652-a475a9586302"
feishu_webhook = "https://open.feishu.cn/open-apis/bot/v2/hook/3442300f-c839-4aaa-9510-bf173c50851b"
keyword = "bug"
print("获取禅道Bug统计")