-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcliff.toml
More file actions
52 lines (47 loc) · 1.94 KB
/
cliff.toml
File metadata and controls
52 lines (47 loc) · 1.94 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
[remote.github]
owner = "DylanDevelops"
repo = "tmpo"
[changelog]
body = """
## What's Changed
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group | striptags | trim }}
{% for commit in commits -%}
{% set commit_title = commit.message | split(pat="\\n") | first -%}
{% if commit.github.pr_number -%}
{% set pr_str = " (#" ~ commit.github.pr_number ~ ")" -%}
{% set commit_title = commit_title | replace(from=pr_str, to="") -%}
{% endif -%}
- {% if commit.breaking %}[breaking] {% endif %}{{ commit_title | upper_first }}\
{% if commit.github.username %} by @{{ commit.github.username }}{% endif %}\
{% if commit.github.pr_number %} in [#{{ commit.github.pr_number }}](https://github.com/DylanDevelops/tmpo/pull/{{ commit.github.pr_number }}){% endif %}
{% endfor %}
{% endfor %}
{%- 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!
{% endfor %}
{% endif %}
{% if previous.version %}
**Full Changelog**: https://github.com/DylanDevelops/tmpo/compare/{{ previous.version }}...{{ version }}
{% else %}
**Full Changelog**: https://github.com/DylanDevelops/tmpo/commits/{{ version }}
{% endif %}
"""
trim = true
[git]
conventional_commits = true
filter_unconventional = true
filter_commits = true
commit_parsers = [
{ message = "^feat", group = "<!-- 0 -->✨ Features" },
{ message = "^fix", group = "<!-- 1 -->🐛 Bug Fixes" },
{ message = "^perf", group = "<!-- 2 -->🚀 Performance Improvements" },
{ message = "^refactor", group = "<!-- 3 -->🛠️ Refactoring" },
{ message = "^docs?", group = "<!-- 4 -->📚 Documentation" },
{ message = "^(build|ci)", group = "<!-- 5 -->🔧 Build & Dependencies" },
{ message = "^chore", group = "<!-- 6 -->🧹 Maintenance" },
{ message = "^Merge ", skip = true },
]