From 43f92af0cb6422caaace76e668b5f7edec9c6d16 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 9 Mar 2026 08:27:55 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A4=84=E7=90=86=20TEST=5FRESULT=20?= =?UTF-8?q?=E4=B8=BA=20unknown=20=E7=9A=84=E8=BE=B9=E7=95=8C=E6=83=85?= =?UTF-8?q?=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com> --- scripts/notify-module-received.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/notify-module-received.js b/scripts/notify-module-received.js index 9c8924fb..daa668d4 100644 --- a/scripts/notify-module-received.js +++ b/scripts/notify-module-received.js @@ -104,13 +104,14 @@ function buildNotificationContent(collab, changedModules, allFiles) { const extraNote = fileLines.length > 20 ? `\n - ...(共 ${fileLines.length} 个文件)` : ''; const isPass = TEST_RESULT === 'pass'; - const statusEmoji = isPass ? '✅' : '❌'; - const statusText = isPass ? '自检通过' : '自检未通过'; + const isUnknown = TEST_RESULT === 'unknown'; + const statusEmoji = isPass ? '✅' : (isUnknown ? 'ℹ️' : '❌'); + const statusText = isPass ? '自检通过' : (isUnknown ? '自检未执行' : '自检未通过'); let body = `## 📦 光湖自动化系统 · 模块收讫回执\n\n`; body += `@${PUSHER_LOGIN} 你好!\n\n`; - if (isPass) { + if (isPass || isUnknown) { body += `🎉 **你上传的模块已收到,自检通过!**\n\n`; } else { body += `⚠️ **你上传的模块已收到,但自检发现以下问题,请修改后重新上传:**\n\n`; @@ -138,7 +139,7 @@ function buildNotificationContent(collab, changedModules, allFiles) { body += isPass ? '所有检查项目通过。\n\n' : '(未获取到详细检查报告)\n\n'; } - if (!isPass) { + if (!isPass && !isUnknown) { body += `### 📌 修改指南\n\n`; body += `1. 请根据以上自检报告修改相关文件\n`; body += `2. 修改完成后重新推送到仓库\n`;