chore: include contributor list to github release

This commit is contained in:
Damiano Ferrari
2025-10-19 09:22:52 +02:00
parent 47a1c2d9df
commit 675144e79b
+15
View File
@@ -8,6 +8,15 @@ body = """
{%- macro remote_url() -%}
https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}
{%- endmacro -%}
{%- macro github_username(email) -%}
{%- if email is containing("@users.noreply.github.com") -%}
{{ email | split(pat="@") | first | split(pat="+") | last }}
{%- elif email is containing("@") -%}
{{ email | split(pat="@") | first }}
{%- else -%}
{{ email }}
{%- endif -%}
{%- endmacro -%}
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group | upper_first }}
{% for commit in commits %}
@@ -16,6 +25,12 @@ body = """
, {{ footer.token }}{{ footer.separator }}{{ footer.value }}\
{% endfor %}\
{% endfor %}
{% endfor %}
### 👥 Contributors
{% set contributors = commits | unique(attribute="author.email") | sort(attribute="author.email") -%}
{% for contributor in contributors -%}
- @{{ self::github_username(email=contributor.author.email) }}
{% endfor %}\n
"""