chore(release): drop the Chinese changelog banner from release notes
The public notes already open with 主要更新, so the bilingual heading above it added a rule and no information.
This commit is contained in:
1 parent
95e5ef0805
commit
41fc5825eb
3 files changed
+4
-6
No files matched your search
@@ -34,8 +34,6 @@
|
||||
11. **Release 说明结构**:使用中英文双语格式(正文禁止包含字面量 `\n`),只写用户可感知的变化、影响以及必要的升级或迁移提醒。类型检查、构建命令、签名、公证、资产复用等技术验证细节保留在 Actions 和关联 Issue 中,不写入公开 Release 正文。功能/修复关联对应 Issue 并标记 Label,发布后回链并关闭 Issue。正文结构:
|
||||
|
||||
```md
|
||||
## 🇨🇳 中文说明 / Chinese Changelog
|
||||
|
||||
## 主要更新
|
||||
|
||||
- 面向用户说明本次变化及影响。
|
||||
|
||||
@@ -382,8 +382,6 @@ export const buildReleaseNotes = ({
|
||||
changesZh,
|
||||
issueNumber,
|
||||
}) => [
|
||||
"## 🇨🇳 中文说明 / Chinese Changelog",
|
||||
"",
|
||||
"## 主要更新",
|
||||
"",
|
||||
...changesZh.map((change) => `- ${change}`),
|
||||
|
||||
@@ -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."));
|
||||
|
||||
Reference in new issue
Block a user