mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
releaser: Remove the GitHub link syntax around release contributors
Fixes #9581
This commit is contained in:
parent
63bb2a5b18
commit
ff02d41721
1 changed files with 4 additions and 8 deletions
|
@ -38,7 +38,7 @@ This is a bug-fix release with a couple of important fixes.
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ range .All }}
|
{{ range .All }}
|
||||||
{{- if .GitHubCommit -}}
|
{{- if .GitHubCommit -}}
|
||||||
* {{ .Subject }} {{ .Hash }} {{ . | authorURL }} {{ range .Issues }}{{ . | issue }} {{ end }}
|
* {{ .Subject }} {{ .Hash }} {{ . | author }} {{ range .Issues }}{{ . | issue }} {{ end }}
|
||||||
{{ else -}}
|
{{ else -}}
|
||||||
* {{ .Subject }} {{ range .Issues }}{{ . | issue }} {{ end }}
|
* {{ .Subject }} {{ range .Issues }}{{ . | issue }} {{ end }}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
@ -90,7 +90,7 @@ Hugo now has:
|
||||||
{{ define "change-section" }}
|
{{ define "change-section" }}
|
||||||
{{ range . }}
|
{{ range . }}
|
||||||
{{- if .GitHubCommit -}}
|
{{- if .GitHubCommit -}}
|
||||||
* {{ .Subject }} {{ .Hash }} {{ . | authorURL }} {{ range .Issues }}{{ . | issue }} {{ end }}
|
* {{ .Subject }} {{ .Hash }} {{ . | author }} {{ range .Issues }}{{ . | issue }} {{ end }}
|
||||||
{{ else -}}
|
{{ else -}}
|
||||||
* {{ .Subject }} {{ range .Issues }}{{ . | issue }} {{ end }}
|
* {{ .Subject }} {{ range .Issues }}{{ . | issue }} {{ end }}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
@ -112,11 +112,8 @@ var templateFuncs = template.FuncMap{
|
||||||
}
|
}
|
||||||
return fmt.Sprintf(linkTemplate, info.Hash, info.GitHubCommit.HTMLURL)
|
return fmt.Sprintf(linkTemplate, info.Hash, info.GitHubCommit.HTMLURL)
|
||||||
},
|
},
|
||||||
"authorURL": func(info gitInfo) string {
|
"author": func(info gitInfo) string {
|
||||||
if info.GitHubCommit.Author.Login == "" {
|
return "@" + info.GitHubCommit.Author.Login
|
||||||
return ""
|
|
||||||
}
|
|
||||||
return fmt.Sprintf(linkTemplate, "@"+info.GitHubCommit.Author.Login, info.GitHubCommit.Author.HTMLURL)
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -165,7 +162,6 @@ func fetchThemeCount() (int, error) {
|
||||||
|
|
||||||
func getReleaseNotesFilename(version string) string {
|
func getReleaseNotesFilename(version string) string {
|
||||||
return filepath.FromSlash(fmt.Sprintf("temp/%s-relnotes-ready.md", version))
|
return filepath.FromSlash(fmt.Sprintf("temp/%s-relnotes-ready.md", version))
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *ReleaseHandler) writeReleaseNotesToTemp(version string, isPatch bool, infosMain, infosDocs gitInfos) (string, error) {
|
func (r *ReleaseHandler) writeReleaseNotesToTemp(version string, isPatch bool, infosMain, infosDocs gitInfos) (string, error) {
|
||||||
|
|
Loading…
Reference in a new issue