Skip to content

Commit 5b20fb2

Browse files
committed
chore(changelog): 更新CHANGELOG格式及生成脚本
- 在CHANGELOG.md中新增每周、每月发布计划说明 - 修改版本条目格式,添加反引号包裹日期以提高可读性 - 更新生成脚本,调整正则表达式格式匹配以适配新的条目格式 - 优化版本标题和日期分隔逻辑,保证自动生成的一致性 - 修正文件头部注释,明确自动生成及手动编辑注意事项
1 parent fb87dea commit 5b20fb2

2 files changed

Lines changed: 46 additions & 17 deletions

File tree

CHANGELOG.md

Lines changed: 42 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,29 +8,43 @@ and the project follows
88
[Semantic Versioning](https://semver.org/spec/v2.0.0.html). Only stable releases
99
are listed; pre-releases are intentionally omitted.
1010

11+
#### Release Schedule
12+
13+
- Weekly release: patch version at the end of every week for routine bugfixes (anytime for an urgent bugfix).
14+
- Monthly release: minor version at the end of every month for new features.
15+
- Major version release is not included in this schedule for breaking changes and new features.
16+
1117
> **This file is generated automatically** from
1218
> [GitHub Releases](https://github.com/lessweb/deepcode-cli/releases). Do not
1319
> edit it by hand — run `npm run changelog` to regenerate.
1420
15-
## [0.1.31](https://github.com/lessweb/deepcode-cli/releases/tag/v0.1.31) - 2026-06-16
21+
## [0.1.31](https://github.com/lessweb/deepcode-cli/releases/tag/v0.1.31)
22+
23+
`2026-06-16`
1624

1725
### Other
1826

1927
- chore(deps-dev): bump esbuild and tsx ([#174](https://github.com/lessweb/deepcode-cli/pull/174))
2028

21-
## [0.1.30](https://github.com/lessweb/deepcode-cli/releases/tag/v0.1.30) - 2026-06-15
29+
## [0.1.30](https://github.com/lessweb/deepcode-cli/releases/tag/v0.1.30)
30+
31+
`2026-06-15`
2232

2333
### Fixed
2434

2535
- mcp: fix Windows MCP spawn double-quoting that breaks all MCP servers ([#164](https://github.com/lessweb/deepcode-cli/pull/164))
2636

27-
## [0.1.29](https://github.com/lessweb/deepcode-cli/releases/tag/v0.1.29) - 2026-06-09
37+
## [0.1.29](https://github.com/lessweb/deepcode-cli/releases/tag/v0.1.29)
38+
39+
`2026-06-09`
2840

2941
### Other
3042

3143
- 修复提示输入的换行、光标定位与 busy 状态显示 ([#171](https://github.com/lessweb/deepcode-cli/pull/171))
3244

33-
## [0.1.28](https://github.com/lessweb/deepcode-cli/releases/tag/v0.1.28) - 2026-06-05
45+
## [0.1.28](https://github.com/lessweb/deepcode-cli/releases/tag/v0.1.28)
46+
47+
`2026-06-05`
3448

3549
### Added
3650

@@ -41,14 +55,18 @@ are listed; pre-releases are intentionally omitted.
4155

4256
- extract OpenAI message converter from SessionManager ([#140](https://github.com/lessweb/deepcode-cli/pull/140))
4357

44-
## [0.1.27](https://github.com/lessweb/deepcode-cli/releases/tag/v0.1.27) - 2026-06-01
58+
## [0.1.27](https://github.com/lessweb/deepcode-cli/releases/tag/v0.1.27)
59+
60+
`2026-06-01`
4561

4662
### Other
4763

4864
- chore(deps): update ink-gradient to 4.0.1 ([#135](https://github.com/lessweb/deepcode-cli/pull/135))
4965
- chore: 更新API Key not found时的文本显示 ([#137](https://github.com/lessweb/deepcode-cli/pull/137))
5066

51-
## [0.1.26](https://github.com/lessweb/deepcode-cli/releases/tag/v0.1.26) - 2026-05-29
67+
## [0.1.26](https://github.com/lessweb/deepcode-cli/releases/tag/v0.1.26)
68+
69+
`2026-05-29`
5270

5371
### Changed
5472

@@ -64,7 +82,9 @@ are listed; pre-releases are intentionally omitted.
6482

6583
- chore(deps): 更新 ink 依赖到 7.0.4 版本 ([#125](https://github.com/lessweb/deepcode-cli/pull/125))
6684

67-
## [0.1.25](https://github.com/lessweb/deepcode-cli/releases/tag/v0.1.25) - 2026-05-25
85+
## [0.1.25](https://github.com/lessweb/deepcode-cli/releases/tag/v0.1.25)
86+
87+
`2026-05-25`
6888

6989
### Added
7090

@@ -85,7 +105,9 @@ are listed; pre-releases are intentionally omitted.
85105

86106
- 更新扩展命令菜单说明和帮助文档 ([#109](https://github.com/lessweb/deepcode-cli/pull/109))
87107

88-
## [0.1.24](https://github.com/lessweb/deepcode-cli/releases/tag/v0.1.24) - 2026-05-21
108+
## [0.1.24](https://github.com/lessweb/deepcode-cli/releases/tag/v0.1.24)
109+
110+
`2026-05-21`
89111

90112
### Added
91113

@@ -101,21 +123,27 @@ are listed; pre-releases are intentionally omitted.
101123
- ui: 修正组件路径拼写错误 ([#93](https://github.com/lessweb/deepcode-cli/pull/93))
102124
- resolve CJK composition bug on iOS terminals (backspace packet splitting) ([#94](https://github.com/lessweb/deepcode-cli/pull/94))
103125

104-
## [0.1.23](https://github.com/lessweb/deepcode-cli/releases/tag/v0.1.23) - 2026-05-19
126+
## [0.1.23](https://github.com/lessweb/deepcode-cli/releases/tag/v0.1.23)
127+
128+
`2026-05-19`
105129

106130
### Added
107131

108132
- 新增 `/raw` 命令交互与终端消息直出 ([#89](https://github.com/lessweb/deepcode-cli/pull/89))
109133
- notify: pass STATUS, FAIL_REASON, BODY, TITLE as env vars to notify hook ([#90](https://github.com/lessweb/deepcode-cli/pull/90))
110134

111-
## [0.1.22](https://github.com/lessweb/deepcode-cli/releases/tag/v0.1.22) - 2026-05-18
135+
## [0.1.22](https://github.com/lessweb/deepcode-cli/releases/tag/v0.1.22)
136+
137+
`2026-05-18`
112138

113139
### Added
114140

115141
- add -p/--prompt flag to auto-submit prompt on launch ([#86](https://github.com/lessweb/deepcode-cli/pull/86))
116142
- Add Ctrl+O live process stdout viewer ([#75](https://github.com/lessweb/deepcode-cli/pull/75))
117143

118-
## [0.1.21](https://github.com/lessweb/deepcode-cli/releases/tag/v0.1.21) - 2026-05-16
144+
## [0.1.21](https://github.com/lessweb/deepcode-cli/releases/tag/v0.1.21)
145+
146+
`2026-05-16`
119147

120148
### Added
121149

@@ -137,7 +165,9 @@ are listed; pre-releases are intentionally omitted.
137165

138166
- style(DropdownMenu): 调整内边距优化下拉菜单布局 ([#73](https://github.com/lessweb/deepcode-cli/pull/73))
139167

140-
## [0.1.20](https://github.com/lessweb/deepcode-cli/releases/tag/v0.1.20) - 2026-05-14
168+
## [0.1.20](https://github.com/lessweb/deepcode-cli/releases/tag/v0.1.20)
169+
170+
`2026-05-14`
141171

142172
### Added
143173

scripts/generate-changelog.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ const STABLE_TAG_RE = /^v?(\d+)\.(\d+)\.(\d+)$/;
5252

5353
/**
5454
* Matches a GitHub "What's Changed" bullet, e.g.
55-
* * fix(core): do a thing by @octocat in https://github.com/o/r/pull/42
55+
*
56+
* fix(core): do a thing by @octocat in https://github.com/o/r/pull/42
5657
*/
5758
const ENTRY_RE = /^[*-]\s+(.+)\s+by\s+@([A-Za-z0-9-]+(?:\[bot\])?)\s+in\s+(https?:\/\/\S+\/pull\/(\d+))\s*$/;
5859

@@ -114,10 +115,8 @@ export function formatEntry(entry, cat = categorize(entry.title)) {
114115
/** Render one release as a Markdown block. */
115116
export function formatRelease(release) {
116117
const lines = [];
117-
const heading = release.htmlUrl
118-
? `## [${release.version}](${release.htmlUrl}) - ${release.date}`
119-
: `## [${release.version}] - ${release.date}`;
120-
lines.push(heading, "");
118+
const heading = release.htmlUrl ? `## [${release.version}](${release.htmlUrl})` : `## [${release.version}]`;
119+
lines.push(heading, "", "`" + release.date + "`", "");
121120

122121
const buckets = new Map();
123122
for (const entry of release.entries) {

0 commit comments

Comments
 (0)