From ac12bc0cf2df64df935f8f1fbd6e2a3888f22ca6 Mon Sep 17 00:00:00 2001 From: Andrea C <3269984+gacallea@users.noreply.github.com> Date: Sat, 10 Aug 2024 17:48:42 +0200 Subject: [PATCH] fix(release-plz): remote.link in links was broken (#33) Signed-off-by: gacallea <3269984+gacallea@users.noreply.github.com> Signed-off-by: gacallea <3269984+gacallea@users.noreply.github.com> --- release-plz.toml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/release-plz.toml b/release-plz.toml index e0e621e..66c8dd7 100644 --- a/release-plz.toml +++ b/release-plz.toml @@ -30,10 +30,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 body = """ {% macro print_commit(commit) -%} - - {% if commit.scope %}*({{ commit.scope }})* {% endif %}\ - {% if commit.breaking %}[**breaking**] {% endif %}\ - - {{ commit.message | upper_first }} - \ + - {% if commit.scope %}*({{ commit.scope }})* {% endif %}\ + {% if commit.breaking %}[**breaking**] {% endif %}\ + {{ commit.message | upper_first }} - \ ([{{ commit.id | truncate(length=7, end="") }}]({{ remote.link }}/commit/{{ commit.id }}))\ {% endmacro -%} @@ -88,7 +87,7 @@ commit_parsers = [ link_parsers = [ # Extract all issues and PRs and generate URLs linking to them. # The link text will be the matching pattern. - { pattern = "#(\\d+)", href = "{{ remote.link }/issues/$1" }, + { pattern = "#(\\d+)", href = "{{ remote.link }}/issues/$1" }, # Extract mentions of IETF RFCs and generate URLs linking to them. # It also rewrites the text as "ietf-rfc...". { pattern = "RFC(\\d+)", text = "ietf-rfc$1", href = "https://datatracker.ietf.org/doc/html/rfc$1" },