fix: 通用项目以 App 字段作为产物文件名和通知中的 App 标识
通用项目(如朵云轩)没有 AppGuid,通知中 App Guid 为空、产物文件名以 _ 开头。 改为取第一个 App 字段(如 APPID)作为 App 标识,并在通知中显示该字段名; 未填写时回退到 upload_key。Readoor 项目不变。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
6890f13aa9
commit
9c0b677d38
@@ -35,7 +35,18 @@ def test_dingtalk_payload_matches_autopacking_content():
|
||||
assert "" in text
|
||||
|
||||
|
||||
def test_dingtalk_payload_at_mobiles_appended_to_text_and_at_field():
|
||||
def test_dingtalk_payload_uses_project_identifier_label():
|
||||
payload = build_dingtalk_payload(
|
||||
{**_build_config(), "APPID": "1587365345", "APPID_LABEL": "APPID"},
|
||||
"https://download.example.com/app.html",
|
||||
)
|
||||
|
||||
text = payload["markdown"]["text"]
|
||||
assert "**APPID:** 1587365345" in text
|
||||
assert "App Guid" not in text
|
||||
|
||||
|
||||
|
||||
payload = build_dingtalk_payload(
|
||||
_build_config(),
|
||||
"https://download.example.com/app.html",
|
||||
|
||||
Reference in New Issue
Block a user