Skip to content

Commit ffb2f5c

Browse files
committed
ci(semantic-release): 使用中文 commit type
1 parent 3fb7551 commit ffb2f5c

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

.releaserc.js

+13-13
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
const transformCommitType = (type) => {
22
const commitTypeMapping = {
3-
feat: 'Features',
4-
fix: 'Bug Fixes',
5-
perf: 'Performance Improvements',
6-
revert: 'Reverts',
7-
docs: 'Documentation',
8-
style: 'Styles',
9-
refactor: 'Code Refactoring',
10-
test: 'Tests',
11-
build: 'Build System',
12-
ci: 'Continuous Integration',
13-
chore: 'Chores',
14-
default: 'Miscellaneous',
3+
feat: '功能',
4+
fix: '修复',
5+
perf: '优化',
6+
revert: '回滚',
7+
docs: '文档',
8+
style: '格式',
9+
refactor: '重构',
10+
test: '测试',
11+
build: '构建工具',
12+
ci: '持续集成',
13+
chore: '杂务',
14+
default: '其他',
1515
}
1616
return commitTypeMapping[type] || commitTypeMapping['default']
1717
}
@@ -87,7 +87,7 @@ module.exports = {
8787
{
8888
changelogFile: 'docs/CHANGELOG.md',
8989
changelogTitle:
90-
'# Changelog\n\nAll notable changes to this project will be documented in this file. See\n[Conventional Commits](https://conventionalcommits.org) for commit guidelines.',
90+
'# 变更日志\n\n规范参考:[Conventional Commits](https://conventionalcommits.org)',
9191
},
9292
],
9393
['@semantic-release/npm', { npmPublish: false }],

0 commit comments

Comments
 (0)