Put Chinese release notes first

This commit is contained in:
tianma-if committed 2026-08-19 17:10:10 +08:00
1 parent cff31a312e
commit da03f4ed9f
3 files changed
+16 -12

No files matched your search

+6 -6
View File
@@ -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>
```
## 环境、部署与组件约束
+6 -6
View File
@@ -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) => {
+4
View File
@@ -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");