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 %}