Skip to content

Commit 61771f1

Browse files
lguerardclaude
andcommitted
chore(changelog): πŸ”§ add contributors section to cliff.toml
Shows list of contributors per release in generated changelogs. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent ccac5a3 commit 61771f1

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

β€Žcliff.tomlβ€Ž

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,17 @@ body = """
55
### {{ group }}
66
77
{% for commit in commits %}\
8-
- {% if commit.scope %}**{{ commit.scope }}**: {% endif %}{{ commit.message | split(pat="\n") | first | trim_start_matches(pat=": ") }}
8+
- {% if commit.scope %}**{{ commit.scope }}**: {% endif %}{{ commit.message | split(pat="\n") | first }}
99
{% endfor %}
1010
{% endfor %}\
11+
{% set contributors = commits | map(attribute="author.name") | unique | sort -%}
12+
{% if contributors | length > 0 %}
13+
### πŸ‘₯ Contributors
14+
15+
{% for name in contributors %}\
16+
- {{ name }}
17+
{% endfor %}
18+
{% endif %}\
1119
"""
1220
trim = true
1321
footer = ""
@@ -16,6 +24,10 @@ footer = ""
1624
conventional_commits = true
1725
filter_unconventional = false
1826
split_commits = false
27+
commit_preprocessors = [
28+
# Strip leading emoji from the description (after "type(scope): ")
29+
{ pattern = "(\\w+(?:\\([^)]*\\))?!?:\\s+)[^\\w\\s]+\\s*", replace = "$1" },
30+
]
1931
commit_parsers = [
2032
{ message = "^feat", group = "✨ Features" },
2133
{ message = "^fix", group = "πŸ› Bug Fixes" },
@@ -26,7 +38,7 @@ commit_parsers = [
2638
{ message = "^build", group = "πŸ—οΈ Build" },
2739
{ message = "^ci", group = "πŸ‘· CI" },
2840
{ message = "^revert", group = "βͺ Reverts" },
29-
{ message = "^chore\\(version\\)|^chore: πŸ”§ bump version", skip = true },
41+
{ message = "^chore\\(version\\)|^chore: bump version", skip = true },
3042
{ message = "^chore", group = "πŸ”§ Chores" },
3143
{ message = "^wip", skip = true },
3244
{ message = "^style", skip = true },

0 commit comments

Comments
Β (0)