From 5adef49b4ada6b3cacd7b616eeba9422035456c3 Mon Sep 17 00:00:00 2001 From: Antonin Delpeuch Date: Wed, 23 Jul 2025 20:16:56 +0200 Subject: [PATCH 1/2] chore: Highlight new contributors in release notes --- cliff.toml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/cliff.toml b/cliff.toml index bca28b3..f22ced3 100644 --- a/cliff.toml +++ b/cliff.toml @@ -18,7 +18,19 @@ body = """ {{ commit.message | upper_first }}\ {% if commit.remote.username %} by @{{ commit.remote.username }}{%- endif %}\ {% endfor %} -{% endfor %}\n +{% endfor %} + +{%- if gitea -%} +{% if gitea.contributors | filter(attribute="is_first_time", value=true) | length != 0 %} + ## 🎉 New contributors +{% endif %}\ +{% for contributor in gitea.contributors | filter(attribute="is_first_time", value=true) %} + - @{{ contributor.username }} made their first contribution \ + {%- if contributor.pr_number %} in #{{ contributor.pr_number }} \ + {% endif %} +{%- endfor -%} +{% endif %} +\n """ # A Tera template to be rendered as the changelog's footer. # See https://keats.github.io/tera/docs/#introduction -- 2.47.3 From 5f4df4fd9f38bdad3bfbc00623b59021fe957172 Mon Sep 17 00:00:00 2001 From: Antonin Delpeuch Date: Wed, 23 Jul 2025 20:31:33 +0200 Subject: [PATCH 2/2] Make heading smaller --- cliff.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cliff.toml b/cliff.toml index f22ced3..5d20da6 100644 --- a/cliff.toml +++ b/cliff.toml @@ -22,7 +22,7 @@ body = """ {%- if gitea -%} {% if gitea.contributors | filter(attribute="is_first_time", value=true) | length != 0 %} - ## 🎉 New contributors + ### 🎉 New contributors {% endif %}\ {% for contributor in gitea.contributors | filter(attribute="is_first_time", value=true) %} - @{{ contributor.username }} made their first contribution \ -- 2.47.3