From 1461e6d3bb1c07cd12c9815a4992b5d65bb616e7 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sun, 12 Dec 2021 13:19:36 +0100 Subject: [PATCH 1/2] chore: adjust changelog template to link to prs instead of issues --- .chglog/CHANGELOG.tpl.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.chglog/CHANGELOG.tpl.md b/.chglog/CHANGELOG.tpl.md index 4d6bff8..b79faa8 100755 --- a/.chglog/CHANGELOG.tpl.md +++ b/.chglog/CHANGELOG.tpl.md @@ -7,7 +7,7 @@ ### {{ .Title }} {{ range .Commits -}} -- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ (regexReplaceAll "(Co-\\w*-by.*)" .Subject "") | trim }} +- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ (regexReplaceAll "(.*)/issues/(.*)" (regexReplaceAll "(Co-\\w*-by.*)" .Subject "") "${1}/pull/${2}") | trim }} {{ end }} {{- end -}} -- 2.45.2 From f947c14fb32133660a7cdf4f0b7ffb8428a0a05d Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sun, 12 Dec 2021 13:22:21 +0100 Subject: [PATCH 2/2] chore: adjust changelog template to link to prs instead of issues --- .chglog/CHANGELOG.tpl.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.chglog/CHANGELOG.tpl.md b/.chglog/CHANGELOG.tpl.md index b79faa8..cc0367b 100755 --- a/.chglog/CHANGELOG.tpl.md +++ b/.chglog/CHANGELOG.tpl.md @@ -7,7 +7,7 @@ ### {{ .Title }} {{ range .Commits -}} -- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ (regexReplaceAll "(.*)/issues/(.*)" (regexReplaceAll "(Co-\\w*-by.*)" .Subject "") "${1}/pull/${2}") | trim }} +- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ (regexReplaceAll "(.*)/issues/(.*)" (regexReplaceAll "(Co-\\w*-by.*)" .Subject "") "${1}/pulls/${2}") | trim }} {{ end }} {{- end -}} -- 2.45.2