Skip to content

AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.

chore(release): drop the Chinese changelog banner from release notes

tianma-if41fc5825ebc5
diff --git a/AGENTS.md b/AGENTS.md
index 92876582..22e29711 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -34,8 +34,6 @@
11. **Release 说明结构**:使用中英文双语格式(正文禁止包含字面量 `\n`),只写用户可感知的变化、影响以及必要的升级或迁移提醒。类型检查、构建命令、签名、公证、资产复用等技术验证细节保留在 Actions 和关联 Issue 中,不写入公开 Release 正文。功能/修复关联对应 Issue 并标记 Label,发布后回链并关闭 Issue。正文结构:
```md
-## 🇨🇳 中文说明 / Chinese Changelog
-
## 主要更新
- 面向用户说明本次变化及影响。
diff --git a/scripts/release.mjs b/scripts/release.mjs
index e6662738..8f6fb92f 100644
--- a/scripts/release.mjs
+++ b/scripts/release.mjs
@@ -382,8 +382,6 @@ export const buildReleaseNotes = ({
changesZh,
issueNumber,
}) => [
- "## 🇨🇳 中文说明 / Chinese Changelog",
- "",
"## 主要更新",
"",
...changesZh.map((change) => `- ${change}`),
diff --git a/scripts/release.test.mjs b/scripts/release.test.mjs
index bcfa106e..78034200 100644
--- a/scripts/release.test.mjs
+++ b/scripts/release.test.mjs
@@ -448,11 +448,13 @@ describe("release automation", () => {
changesZh: ["优化发布流程。"],
issueNumber: 126,
});
+ expect(notes).toContain("## 主要更新");
expect(notes).toContain("## Key Changes");
expect(notes).toContain("Related Issue: #126");
- expect(notes).toContain("## 🇨🇳 中文说明 / Chinese Changelog");
expect(notes).toContain("关联 Issue:#126");
- expect(notes.indexOf("## 🇨🇳 中文说明 / Chinese Changelog"))
+ expect(notes).not.toContain("中文说明");
+ expect(notes).not.toContain("Chinese Changelog");
+ expect(notes.indexOf("## 主要更新"))
.toBeLessThan(notes.indexOf("## Key Changes"));
expect(notes.indexOf("优化发布流程。"))
.toBeLessThan(notes.indexOf("Improve the release flow."));