From 0a36ef55ee092fe7bb1f8803c04a4cb8245b2a13 Mon Sep 17 00:00:00 2001 From: welpo Date: Fri, 18 Oct 2024 18:57:44 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20misc:=20update=20git-cliff=20var?= =?UTF-8?q?iables=20to=20`commit.remote`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `commit.github` is deprecated. --- cliff.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cliff.toml b/cliff.toml index 360bd75..9e9dc97 100644 --- a/cliff.toml +++ b/cliff.toml @@ -37,7 +37,7 @@ body = """ {% macro commit(commit, in_breaking_section=false) -%} - {% if commit.scope %}*({{ commit.scope }})* {% endif %}{% if commit.breaking and not in_breaking_section %}[**‼️BREAKING‼️**] {% endif %}\ {{ commit.message | upper_first }}\ - {% if not commit.github.pr_number %} ([{{ commit.id | truncate(length=7, end="") }}]({{ self::remote_url() }}/commit/{{ commit.id }})){%- endif -%}{% if commit.github.username %} by @{{ commit.github.username }} \ + {% if not commit.remote.pr_number %} ([{{ commit.id | truncate(length=7, end="") }}]({{ self::remote_url() }}/commit/{{ commit.id }})){%- endif -%}{% if commit.remote.username %} by @{{ commit.remote.username }} \ {%- set co_authors = commit.footers | filter(attribute="token", value="Co-authored-by") | map(attribute="value") -%} {%- set number_of_co_authors = co_authors | length -%} {%- for co_author in co_authors -%}