Skip to content

Commit cc71b62

Browse files
committed
internal/history: split Release summary into bug and security fixes
Make it possible to use the higher-level fix summary fields, instead of CustomSummary, when a release has both bug fixes and security fixes. Rewrite the recent hand-written custom summaries to use the new fields, which produces equivalent output that differs largely in white-space and some trivial consistency fixes. Fixes golang/go#51719. Updates golang/go#38488. Updates golang/go#44918. Change-Id: I672cea21f63cb4ab9764efb6cbc783cf503b791c Reviewed-on: https://go-review.googlesource.com/c/website/+/393357 Trust: Dmitri Shuralyov <[email protected]> Reviewed-by: Carlos Amedee <[email protected]>
1 parent 39819c8 commit cc71b62

File tree

5 files changed

+640
-369
lines changed

5 files changed

+640
-369
lines changed

_content/doc/devel/release.html

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,20 @@ <h2 id="go{{.Version}}">go{{.Version}} (released {{.Date}})</h2>
4343
{{.}}
4444
{{else}}
4545
{{if .Future}}will include{{else}}includes{{end}}
46-
{{.Quantifier}}
47-
{{if .Security}}security{{end}}
48-
{{if eq .Quantifier "a"}}fix{{else}}fixes{{end -}}
49-
{{with .ComponentsAndPackages}} to {{.}}{{end}}.
46+
{{with .Security}}
47+
{{.Quantifier}}
48+
security
49+
{{if eq .Quantifier "a"}}fix{{else}}fixes{{end -}}
50+
{{with .ComponentsAndPackages}} to {{.}}{{end -}}
51+
{{end}}
52+
{{- if and .Security .Bug}}, as well as{{end -}}
53+
{{if .Bug}}
54+
{{.Bug.Quantifier}}
55+
{{if .Security}}bug{{end}} {{/* If there are security fixes too, specify that what follows are bug fixes. */}}
56+
{{if eq .Bug.Quantifier "a"}}fix{{else}}fixes{{end -}}
57+
{{with .Bug.ComponentsAndPackages}} to {{.}}{{end -}}
58+
{{end}}
59+
{{- if or .Security .Bug}}.{{end}}
5060
{{.More}}
5161

5262
{{if not .Future}}

0 commit comments

Comments
 (0)