Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/rc-cli/src/commands/changelog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ function formatType(type: string) {
const MAP: Record<string, string> = {
fix: 'Bug Fixes',
feat: 'Feature',
docs: 'Document',
// docs: 'Document',
types: 'Types',
};

return MAP[type] || type;
}

function transform(item: any) {
if (item.type === 'chore' || item.type === 'test') {
if (item.type === 'chore' || item.type === 'test' || item.type === 'docs') {
return null;
}

Expand Down Expand Up @@ -90,7 +90,7 @@ async function updateChangelog(spinner: ora.Ora) {
return;
}
const generatedText = readFileSync(DIST_FILE);
const insertIndex = match.index + match[0].length + 4;
const insertIndex = match.index + match[0].length + 2;
const updatedContent =
content.slice(0, insertIndex) + generatedText + '\r\n' + content.slice(insertIndex);
fse.writeFile(CHANGELOG_MD, updatedContent, 'utf8', (err) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/rc-cli/template/changelog-commit.hbs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-{{#if scope}} {{scope}}:
-{{#if scope}} {{scope}}:
{{~/if}} {{#if subject}}
{{~subject}}
{{~else}}
Expand Down
2 changes: 1 addition & 1 deletion packages/rc-cli/template/changelog-header.hbs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### [v{{version}}](
### [{{version}}](
{{~#if @root.repository}}
{{~#if @root.host}}
{{~@root.host}}/
Expand Down
22 changes: 2 additions & 20 deletions packages/rc-ui-lib/docs/markdown/changelog.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,33 +16,15 @@ rc-ui-lib 遵循 [Semver](https://semver.org/lang/zh-CN/) 语义化版本规范

## 更新内容

##### [v2.0.6](https://github.com/rancui/rc-ui-lib/compare/v2.0.5...v2.0.6)
### [2.0.6](https://github.com/rancui/rc-ui-lib/compare/v2.0.5...v2.0.6)

`2023-08-10`

**Document**

- update changelog.zh-CN.md [983618](https://github.com/rancui/rc-ui-lib/commit/9836185903540cb4bfd12baa3ffc66053176455d)

**Feature**

- ActionBar: 新增 placeholder 属性 [#62](https://github.com/rancui/rc-ui-lib/issues/62)
### [v2.0.5](https://github.com/rancui/rc-ui-lib/compare/v2.0.3...v2.0.5)

`2023-08-04`

**Bug Fixes**

- DateTimePicker 设置 value 无效 [#59](https://github.com/rancui/rc-ui-lib/issues/59)
- pubish error [aaef17](https://github.com/rancui/rc-ui-lib/commit/aaef179995cdf3f430395f5aac60b59f7c4d5eca)
- 修复PasswordInput组件阻止默认事件问题 [#60](https://github.com/rancui/rc-ui-lib/issues/60)

**Document**

- update changelog.zh-CN.md [5db505](https://github.com/rancui/rc-ui-lib/commit/5db5053c521d2684120691fc9e3fe24255055608)
- update changlog.zh-CN.md [2ac02b](https://github.com/rancui/rc-ui-lib/commit/2ac02b87874879230a19820865dd8fbb60b84b33)

# [2.0.5](https://github.com/rancui/rc-ui-lib/compare/v2.0.4...v2.0.5)
### [2.0.5](https://github.com/rancui/rc-ui-lib/compare/v2.0.4...v2.0.5)

`2023-08-04`

Expand Down