-
Notifications
You must be signed in to change notification settings - Fork 147
Expand file tree
/
Copy pathcliff.toml
More file actions
74 lines (60 loc) · 2.23 KB
/
cliff.toml
File metadata and controls
74 lines (60 loc) · 2.23 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
[remote.github]
owner = "kubeflow"
repo = "sdk"
[changelog]
header = """
# Changelog
"""
body = """
{%- if version %}
## [{{ version }}](https://github.com/kubeflow/sdk/releases/tag/{{ version }}) ({{ timestamp | date(format="%Y-%m-%d") }})
{%- else %}
## [Unreleased]
{%- endif %}
{%- set group_order = ["🚀 Features", "🐛 Bug Fixes", "⚙️ Miscellaneous Tasks", "⏪ Reverts"] -%}
{%- for group_name in group_order %}
{%- set group_commits = commits | filter(attribute="group", value=group_name) -%}
{%- if group_commits | length > 0 %}
### {{ group_name }}
{% for commit in group_commits | reverse -%}
{%- set message = commit.message | split(pat="\n") | first | trim -%}
{%- set parts = message | split(pat=" (#") -%}
{% if parts | length > 1 and parts | last | trim | split(pat=")") | length > 1 -%}
{%- set pr_part = parts | last | trim -%}
{%- set pr_number = pr_part | replace(from=")", to="") -%}
- {{ parts | slice(end=-1) | join(sep=" (#") }} ([#{{ pr_number }}](https://github.com/kubeflow/sdk/pull/{{ pr_number }}) by @{{ commit.remote.username }})
{% else -%}
- {{ message }} (@{{ commit.remote.username }})
{% endif -%}
{% endfor %}
{%- endif %}
{%- endfor %}
{%- if github -%}
{%- set new_contributors = github.contributors | filter(attribute="is_first_time", value=true) -%}
{%- if new_contributors | length != 0 %}
### New Contributors
{%- for contributor in new_contributors %}
* @{{ contributor.username }} made their first contribution in \
[#{{ contributor.pr_number }}](https://github.com/kubeflow/sdk/pull/{{ contributor.pr_number }})
{%- endfor %}
{%- endif %}
{%- endif -%}
{% raw %}\n{% endraw %}
"""
trim = true
footer = ""
[git]
conventional_commits = false
filter_unconventional = false
split_commits = false
# Only stable release tags
tag_pattern = "^[0-9]+\\.[0-9]+\\.[0-9]+$"
ignore_tags = ".*-(alpha|beta|rc).*"
# Manually define groups based on conventional patterns
commit_parsers = [
{ message = "^feat(\\(.*\\))?:", group = "🚀 Features" },
{ message = "^fix(\\(.*\\))?:", group = "🐛 Bug Fixes" },
{ message = "^chore(\\(.*\\))?:", group = "⚙️ Miscellaneous Tasks" },
{ message = "^revert(\\(.*\\))?:", group = "⏪ Reverts" },
{ message = ".*", skip = true },
]