Skip to content

Commit 7e29096

Browse files
committed
ci: improve cliff.toml template and remove PR title workflow
1 parent ce396cd commit 7e29096

2 files changed

Lines changed: 11 additions & 39 deletions

File tree

.github/workflows/pr-title.yaml

Lines changed: 0 additions & 30 deletions
This file was deleted.

cliff.toml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@
22
header = ""
33
body = """
44
{% if version %}\
5-
# acro {{ version | trim_start_matches(pat="V") }}
6-
5+
# acro {{ version | trim_start_matches(pat="V") }} ({{ timestamp | date(format="%b %d, %Y") }})
76
{% else %}\
87
# Unreleased
9-
108
{% endif %}\
9+
{% for group, commits in commits | group_by(attribute="group") %}
10+
### {{ group }}
1111
{% for commit in commits -%}
12-
* {% if commit.scope %}{{ commit.group }}({{ commit.scope }}): {% else %}{{ commit.group }}: {% endif %}{{ commit.message | trim }}
13-
{% endfor %}\
12+
* {% if commit.scope %}**{{ commit.scope }}:** {% endif %}{{ commit.message | trim }}
13+
{% endfor %}
14+
{%- endfor %}\
1415
"""
1516
trim = true
1617
footer = ""
@@ -29,16 +30,17 @@ commit_preprocessors = [
2930
commit_parsers = [
3031
{ message = "^\\[pre-commit", skip = true },
3132
{ message = "^docs: update changelog", skip = true },
33+
{ message = "^docs: update citation", skip = true },
3234
{ message = "^chore: prepare", skip = true },
3335
{ message = "^feat", group = "feat" },
3436
{ message = "^fix", group = "fix" },
3537
{ message = "^docs", group = "docs" },
36-
{ message = "^chore", group = "chore" },
37-
{ message = "^ci", group = "ci" },
38+
{ message = "^perf", group = "perf" },
3839
{ message = "^refactor", group = "refactor" },
39-
{ message = "^test", group = "test" },
4040
{ message = "^build", group = "build" },
41-
{ message = "^perf", group = "perf" },
41+
{ message = "^test", group = "test" },
42+
{ message = "^ci", group = "ci" },
4243
{ message = "^style", group = "style" },
44+
{ message = "^chore", group = "chore" },
4345
{ message = "^revert", group = "revert" },
4446
]

0 commit comments

Comments
 (0)