-
Notifications
You must be signed in to change notification settings - Fork 0
/
changelog.config.js
43 lines (40 loc) · 1.13 KB
/
changelog.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
module.exports = {
writerOpts: {
transform: (commit, context) => {
if (commit.type === "update") {
commit.type = "更新"
} else if (commit.type === "feat") {
commit.type = "新功能"
} else if (commit.type === "fix") {
commit.type = "修复"
} else if (commit.type === "docs") {
return
} else if (commit.type === "style") {
return
} else if (commit.type === "refactor") {
return
} else if (commit.type === "perf") {
commit.type = "优化"
} else if (commit.type === "ci") {
return
} else if (commit.type === "test") {
return
} else if (commit.type === "chore") {
return
} else if (commit.type === "revert") {
return
} else if (commit.type === "merge") {
return
} else if (commit.type === "build") {
return
} else if (commit.type === "WIP") {
return
} else {
return
}
commit.scope = null
commit.shortHash = typeof commit.hash === "string" ? commit.hash.substring(0, 7) : commit.shortHash
return commit
},
},
}