Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 6 additions & 9 deletions packages/uniwind/cliff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,17 @@ body = """
{% endif -%}

{% set order = ["🚀 Features", "🐛 Bug Fixes", "🔨 Refactoring", "⚡ Performance", "📚 Documentation", "🧪 Testing", "🏠 Chores", "📦 Other"] %}
{% set grouped = commits | group_by(attribute="group") %}
{% for group in order %}{% if group in grouped %}
{% for group in order %}{% set group_commits = commits | filter(attribute="group", value=group) %}{% if group_commits | length > 0 %}
### {{ group }}
{% for commit in grouped[group] %}
{%- for commit in group_commits %}
{%- if commit.remote.pr_title -%}
{%- set commit_message = commit.remote.pr_title -%}
{%- else -%}
{%- set commit_message = commit.message -%}
{%- endif -%}
* {{ commit_message | split(pat="\n") | first | trim }}\
{% if commit.remote.username %} by @{{ commit.remote.username }}{%- endif -%}
{% if commit.remote.pr_number %} in \
[#{{ commit.remote.pr_number }}]({{ self::remote_url() }}/pull/{{ commit.remote.pr_number }})\
{%- endif %}
{%- endif %}
* {{ commit_message | split(pat="\n") | first | trim -}}
{%- if commit.remote.username %} by @{{ commit.remote.username }}{% endif -%}
{%- if commit.remote.pr_number %} in [#{{ commit.remote.pr_number }}]({{ self::remote_url() }}/pull/{{ commit.remote.pr_number }}){% endif %}
{%- endfor %}
{% endif %}{% endfor -%}

Expand Down