Skip to content

Commit

Permalink
fix(release-plz): remote.link in links was broken (#33)
Browse files Browse the repository at this point in the history
Signed-off-by: gacallea <3269984+gacallea@users.noreply.github.com>

Signed-off-by: gacallea <3269984+gacallea@users.noreply.github.com>
  • Loading branch information
andreacfromtheapp authored Aug 10, 2024
1 parent d5550ef commit ac12bc0
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions release-plz.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 -%}
Expand Down Expand Up @@ -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" },
Expand Down

0 comments on commit ac12bc0

Please sign in to comment.