-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcliff.toml
More file actions
144 lines (124 loc) · 3.77 KB
/
cliff.toml
File metadata and controls
144 lines (124 loc) · 3.77 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
# git-cliff configuration
# See https://git-cliff.org/docs/configuration
[git]
# Parse the commits based on https://www.conventionalcommits.org
conventional_commits = true
# Filter out the commits that are not conventional
filter_unconventional = false
# Process each line of a commit as an individual commit
split_commits = false
# Regex for parsing the grouping part
commit_parsers = [
{ message = "^feat", group = "<!-- 0 -->🚀 Features" },
{ message = "^fix", group = "<!-- 1 -->🐛 Bug Fixes" },
{ message = "^doc", group = "<!-- 3 -->📝 Documentation" },
{ message = "^perf", group = "<!-- 4 -->⚡ Performance" },
{ message = "^refactor", group = "<!-- 2 -->🔄 Refactor" },
{ message = "^style", group = "<!-- 5 -->🎨 Styling" },
{ message = "^test", group = "<!-- 6 -->✅ Testing" },
{ message = "^chore\\(release\\): prepare for", skip = true },
{ message = "^chore", group = "<!-- 7 -->⏰ Miscellaneous Tasks" },
{ body = ".*security", group = "<!-- 8 -->🔒 Security" },
{ body = ".*breaking", group = "<!-- 1 -->🐛 Bug Fixes" },
]
# Protect breaking changes from being skipped due to matching a skipping commit_parser
protect_breaking_commits = false
# Filter out the commits that are not matched by commit parsers
filter_commits = false
# Regex pattern for matching git tags
tag_pattern = "v[0-9]*"
# Sort the tags topologically
topo_order = false
# Sort the commits inside sections by oldest/newest order
sort_commits = "oldest"
[remote.github]
# Define the GitHub repository
owner = "royisme"
repo = "BobaMixer"
# Add custom sections
[[groups]]
name = "<!-- 0 -->🚀 Features"
order = 0
[[groups]]
name = "<!-- 1 -->🐛 Bug Fixes"
order = 1
[[groups]]
name = "<!-- 2 -->🔄 Refactor"
order = 2
[[groups]]
name = "<!-- 3 -->📝 Documentation"
order = 3
[[groups]]
name = "<!-- 4 -->⚡ Performance"
order = 4
[[groups]]
name = "<!-- 5 -->🎨 Styling"
order = 5
[[groups]]
name = "<!-- 6 -->✅ Testing"
order = 6
[[groups]]
name = "<!-- 7 -->⏰ Miscellaneous Tasks"
order = 7
[[groups]]
name = "<!-- 8 -->🔒 Security"
order = 8
# Template for the changelog header
header = """
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
"""
# Template for the changelog footer
footer = """
<!-- generated by git-cliff -->
**中文用户**: BobaMixer是一个智能AI适配器路由器,支持多提供商、智能路由、预算追踪和成本优化。
**English Users**: BobaMixer is a smart AI adapter router with multi-provider support, intelligent routing, budget tracking, and cost optimization.
📖 [Documentation](https://royisme.github.io/BobaMixer/) |
🐛 [Report Issues](https://github.com/royisme/BobaMixer/issues) |
💬 [Discussions](https://github.com/royisme/BobaMixer/discussions)
"""
# Template for a changelog entry
trim = true
body = """
## {{ if .Range.Tag }}[{{ .Range.Tag }}]{{ else }}Unreleased{{ end }} - {{ .Range.Date.Format "2006-01-02" }}
{{ range .CommitGroups -}}
### {{ .Title }}
{{ range .Commits -}}
- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
{{- if .Body }}
{{ .Body }}
{{ end }}
{{ end }}
{{ end -}}
{{- if .VersionGroups }}
{{ range .VersionGroups -}}
### {{ .Name }}
{{ range .Commits -}}
- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
{{- if .Body }}
{{ .Body }}
{{ end }}
{{ end }}
{{ end -}}
{{ end -}}
{{- if .RevertCommits -}}
### 🔄 Reverts
{{ range .RevertCommits -}}
- {{ .Revert.Header }}
{{- if .Revert.Body }}
{{ .Revert.Body }}
{{ end }}
{{ end }}
{{ end -}}
{{- if .NoteGroups -}}
{{ range .NoteGroups -}}
### {{ .Title }}
{{ range .Notes }}
{{ .Body }}
{{ end }}
{{ end -}}
{{ end -}}
"""
[update_always]