From 8d5e4a6b37442c5cb587c857adb3da140e97a268 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Orhun=20Parmaks=C4=B1z?= Date: Wed, 25 Sep 2024 10:34:01 +0300 Subject: [PATCH] fix(git-cliff): update config for adding contributors to changelog --- .github/cliff.toml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/cliff.toml b/.github/cliff.toml index cbf02d92e..d4de9f999 100644 --- a/.github/cliff.toml +++ b/.github/cliff.toml @@ -26,9 +26,11 @@ body = """ """ # template for the changelog footer footer = """ -{% for contributor in github.contributors | filter(attribute="is_first_time", value=true) %} - * @{{ contributor.username }} made their first contribution in #{{ contributor.pr_number }} -{%- endfor -%} +{% for release in releases -%} + {% for contributor in release.github.contributors | filter(attribute="is_first_time", value=true) %} + * @{{ contributor.username }} made their first contribution in #{{ contributor.pr_number }} + {%- endfor -%} +{% endfor %} """ # remove the leading and trailing s trim = true