changelog
生成 changelog。
使用
shell
rt changelog配置
此配置仅影响 rt changelog 命令,不会影响 rt release 中的 changelog 流程。
ts
import { defineConfig } from 'rattail/vite-plus'
export default defineConfig({
rattail: {
changelog: {
// releaseCount: 3,
// file: './CHANGELOG.md',
},
},
})编程式使用
ts
import { changelog } from 'rattail/cli'
await changelog({
// releaseCount: 3,
// file: './CHANGELOG.md',
})选项
| 选项 | 类型 | 默认值 | 描述 |
|---|---|---|---|
file | string | - | 输出文件路径 |
releaseCount | number | 0 | 生成的发布版本数量,0 表示全量生成 |
showTypes | string[] | - | 包含的 commit 类型 (如 'feat'、'fix'、'perf') |