-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.git-cliff.toml
More file actions
72 lines (61 loc) · 2.2 KB
/
Copy path.git-cliff.toml
File metadata and controls
72 lines (61 loc) · 2.2 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
[changelog]
body = """
<img src="https://raw.githubusercontent.com/rinlit-233-shiroko/class-widgets-2/main/docs/assets/release_banner.png" width="100%" />
> [!WARNING]
> 目前 Class Widgets 2 SDK 仍然处于开发阶段。
> 欢迎反馈意见和建议谢谢喵
## Class Widgets 2 SDK 更新速递
> [!NOTE]
> 当前版本:`{% if version %}({{ version }}){%- endif -%}`
{% for group, commits in commits | group_by(attribute="group") %}
{% if group != "✨ 新亮点" %}
<details>
<summary><h3>{{ group | upper_first }}</h3></summary>
{% for commit in commits | unique(attribute="message") %}
- {% if commit.scope %}{{ commit.scope }}: {%- endif -%}{{ commit.message | upper_first }}\
{% if commit.remote.username %} 作者: @{{ commit.remote.username }}{%- endif -%}
{% if commit.remote.pr_number %} 在 \
[#{{ commit.remote.pr_number }}]({{ self::remote_url() }}/pull/{{ commit.remote.pr_number }}) \
{%- endif %}
{% endfor %}
</details>
{% else %}
### {{ group | upper_first }}
{% for commit in commits | unique(attribute="message") %}
- {% if commit.scope %}{{ commit.scope }}: {%- endif -%}{{ commit.message | upper_first }}\
{% if commit.remote.username %} 作者: @{{ commit.remote.username }}{%- endif -%}
{% if commit.remote.pr_number %} 在 \
[#{{ commit.remote.pr_number }}]({{ self::remote_url() }}/pull/{{ commit.remote.pr_number }}) \
{%- endif %}
{% endfor %}
{% endif %}
{% endfor -%}
{% if version %}
{% if previous.version %}
**完整 Changelog**: {{ self::remote_url() }}/compare/{{ previous.version }}...{{ version }}
{% endif %}
{% else -%}
{% raw %}\n{% endraw %}
{% endif %}
{%- macro remote_url() -%}
https://github.com/rinlit-233-shiroko/class-widgets-sdk
{%- endmacro -%}
"""
trim = true
footer = "<!-- generated by git-cliff -->"
output = "CHANGELOG.md"
[git]
conventional_commits = true
filter_unconventional = true
split_commits = false
commit_parsers = [
{ message = "^feat", group = "✨ 新亮点"},
{ message = "^fix", group = "🛠️ 修复的问题"},
{ message = "^refactor", group = "🔃 功能重构"},
{ message = "^docs", group = "📄 文档更新"}
]
protect_breaking_commits = false
filter_commits = true
topo_order = false
sort_commits = "oldest"
link_parsers = []