From a521891b557772451f37a791bde04067d3f20626 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Orhun=20Parmaks=C4=B1z?= Date: Sat, 17 Feb 2024 13:39:03 +0100 Subject: [PATCH] chore(example): use full links in GitHub templates (#503) --- examples/github-keepachangelog.toml | 9 +++++++-- examples/github.toml | 9 +++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/examples/github-keepachangelog.toml b/examples/github-keepachangelog.toml index ba47a37063..647943302a 100644 --- a/examples/github-keepachangelog.toml +++ b/examples/github-keepachangelog.toml @@ -26,7 +26,9 @@ body = """ {%- for commit in commits %} - {{ commit.message | upper_first | trim }}\ {% if commit.github.username %} by @{{ commit.github.username }}{%- endif -%} - {% if commit.github.pr_number %} in #{{ commit.github.pr_number }}{%- endif -%} + {% if commit.github.pr_number %} in \ + [#{{ commit.github.pr_number }}](https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}/pull/{{ commit.github.pr_number }}) \ + {%- endif -%} {% endfor %} {% endfor %} @@ -35,7 +37,10 @@ body = """ {%- endif -%} {% for contributor in github.contributors | filter(attribute="is_first_time", value=true) %} - * @{{ contributor.username }} made their first contribution in #{{ contributor.pr_number }}\ + * @{{ contributor.username }} made their first contribution + {%- if contributor.pr_number %} in \ + [#{{ contributor.pr_number }}](https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}/pull/{{ contributor.pr_number }}) \ + {%- endif %} {%- endfor %}\n """ # template for the changelog footer diff --git a/examples/github.toml b/examples/github.toml index 1ea6201e7a..4baad89990 100644 --- a/examples/github.toml +++ b/examples/github.toml @@ -21,7 +21,9 @@ body = """ {%- endif -%} * {{ commit_message | split(pat="\n") | first | trim }}\ {% if commit.github.username %} by @{{ commit.github.username }}{%- endif -%} - {% if commit.github.pr_number %} in #{{ commit.github.pr_number }}{%- endif %} + {% if commit.github.pr_number %} in \ + [#{{ commit.github.pr_number }}](https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}/pull/{{ commit.github.pr_number }}) \ + {%- endif %} {%- endfor -%} {% if github.contributors | filter(attribute="is_first_time", value=true) | length != 0 %} @@ -29,7 +31,10 @@ body = """ ## New Contributors {%- endif %}\ {% for contributor in github.contributors | filter(attribute="is_first_time", value=true) %} - * @{{ contributor.username }} made their first contribution in #{{ contributor.pr_number }} + * @{{ contributor.username }} made their first contribution + {%- if contributor.pr_number %} in \ + [#{{ contributor.pr_number }}](https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}/pull/{{ contributor.pr_number }}) \ + {%- endif %} {%- endfor -%} {% if version %}