Skip to content

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

Put Chinese release notes first

tianma-ifda03f4ed9f18
diff --git a/AGENTS.md b/AGENTS.md
index 6f885bc3..487e3203 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -24,12 +24,6 @@
11. **Release 说明结构**:使用中英文双语格式(正文禁止包含字面量 `\n`),只写用户可感知的变化、影响以及必要的升级或迁移提醒。类型检查、构建命令、签名、公证、资产复用等技术验证细节保留在 Actions 和关联 Issue 中,不写入公开 Release 正文。功能/修复关联对应 Issue 并标记 Label,发布后回链并关闭 Issue。正文结构:
```md
-## Key Changes
-
-- User-facing summary of changes in English.
-
-Related Issue: #<issue-number>
-
## 🇨🇳 中文说明 / Chinese Changelog
## 主要更新
@@ -37,6 +31,12 @@ Related Issue: #<issue-number>
- 面向用户说明本次变化及影响。
关联 Issue:#<issue-number>
+
+## Key Changes
+
+- User-facing summary of changes in English.
+
+Related Issue: #<issue-number>
```
## 环境、部署与组件约束
diff --git a/scripts/release.mjs b/scripts/release.mjs
index 726671f8..2186072a 100644
--- a/scripts/release.mjs
+++ b/scripts/release.mjs
@@ -344,12 +344,6 @@ export const buildReleaseNotes = ({
changesZh,
issueNumber,
}) => [
- "## Key Changes",
- "",
- ...changesEn.map((change) => `- ${change}`),
- "",
- `Related Issue: #${issueNumber}`,
- "",
"## 🇨🇳 中文说明 / Chinese Changelog",
"",
"## 主要更新",
@@ -358,6 +352,12 @@ export const buildReleaseNotes = ({
"",
`关联 Issue:#${issueNumber}`,
"",
+ "## Key Changes",
+ "",
+ ...changesEn.map((change) => `- ${change}`),
+ "",
+ `Related Issue: #${issueNumber}`,
+ "",
].join("\n");
export const reusedAssetMatches = (previousAssets, currentAssets, name) => {
diff --git a/scripts/release.test.mjs b/scripts/release.test.mjs
index d5d3e16c..79895240 100644
--- a/scripts/release.test.mjs
+++ b/scripts/release.test.mjs
@@ -165,6 +165,10 @@ describe("release automation", () => {
expect(notes).toContain("Related Issue: #126");
expect(notes).toContain("## 🇨🇳 中文说明 / Chinese Changelog");
expect(notes).toContain("关联 Issue:#126");
+ expect(notes.indexOf("## 🇨🇳 中文说明 / Chinese Changelog"))
+ .toBeLessThan(notes.indexOf("## Key Changes"));
+ expect(notes.indexOf("优化发布流程。"))
+ .toBeLessThan(notes.indexOf("Improve the release flow."));
expect(notes).not.toContain("## Verification");
expect(notes).not.toContain("## 验证");
expect(notes).not.toContain("bun run");