aboutsummaryrefslogtreecommitdiffhomepage
path: root/releaser
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2022-03-08 19:36:13 +0100
committerBjørn Erik Pedersen <[email protected]>2022-03-08 19:36:31 +0100
commitff02d41721a32485c2f232d542d841e78f83fa9b (patch)
treecf15ea526a079dbbdf6e0741c18f1a9368903eb6 /releaser
parent63bb2a5b18193602fd442ebafdc85bc36fe05ad2 (diff)
downloadhugo-ff02d41721a32485c2f232d542d841e78f83fa9b.tar.gz
hugo-ff02d41721a32485c2f232d542d841e78f83fa9b.zip
releaser: Remove the GitHub link syntax around release contributors
Fixes #9581
Diffstat (limited to 'releaser')
-rw-r--r--releaser/releasenotes_writer.go12
1 files changed, 4 insertions, 8 deletions
diff --git a/releaser/releasenotes_writer.go b/releaser/releasenotes_writer.go
index e7d9255e7..5c50e4de4 100644
--- a/releaser/releasenotes_writer.go
+++ b/releaser/releasenotes_writer.go
@@ -38,7 +38,7 @@ This is a bug-fix release with a couple of important fixes.
{{ end }}
{{ range .All }}
{{- if .GitHubCommit -}}
-* {{ .Subject }} {{ .Hash }} {{ . | authorURL }} {{ range .Issues }}{{ . | issue }} {{ end }}
+* {{ .Subject }} {{ .Hash }} {{ . | author }} {{ range .Issues }}{{ . | issue }} {{ end }}
{{ else -}}
* {{ .Subject }} {{ range .Issues }}{{ . | issue }} {{ end }}
{{ end -}}
@@ -90,7 +90,7 @@ Hugo now has:
{{ define "change-section" }}
{{ range . }}
{{- if .GitHubCommit -}}
-* {{ .Subject }} {{ .Hash }} {{ . | authorURL }} {{ range .Issues }}{{ . | issue }} {{ end }}
+* {{ .Subject }} {{ .Hash }} {{ . | author }} {{ range .Issues }}{{ . | issue }} {{ end }}
{{ else -}}
* {{ .Subject }} {{ range .Issues }}{{ . | issue }} {{ end }}
{{ end -}}
@@ -112,11 +112,8 @@ var templateFuncs = template.FuncMap{
}
return fmt.Sprintf(linkTemplate, info.Hash, info.GitHubCommit.HTMLURL)
},
- "authorURL": func(info gitInfo) string {
- if info.GitHubCommit.Author.Login == "" {
- return ""
- }
- return fmt.Sprintf(linkTemplate, "@"+info.GitHubCommit.Author.Login, info.GitHubCommit.Author.HTMLURL)
+ "author": func(info gitInfo) string {
+ return "@" + info.GitHubCommit.Author.Login
},
}
@@ -165,7 +162,6 @@ func fetchThemeCount() (int, error) {
func getReleaseNotesFilename(version string) string {
return filepath.FromSlash(fmt.Sprintf("temp/%s-relnotes-ready.md", version))
-
}
func (r *ReleaseHandler) writeReleaseNotesToTemp(version string, isPatch bool, infosMain, infosDocs gitInfos) (string, error) {