File tree 1 file changed +17
-12
lines changed
1 file changed +17
-12
lines changed Original file line number Diff line number Diff line change 8
8
9
9
{{ range .CommitGroups -}}
10
10
### {{ .Title }}
11
- {{ range .Commits -}}
12
-
13
- {{- $subject := (regexReplaceAll ` URL ` (regexReplaceAll ` \[(.*)(\d\d)\]\(.*?\) ` .Subject "<a href=\" URL/pull/${2}\" >${1}${2}</a >") $repourl) -}}
14
-
15
- {{ if .TrimmedBody -}}<dl ><dd ><details ><summary > {{ else -}}- {{ end -}}
16
11
17
- <a href =" {{$repourl}}/commit/{{.Hash.Long}} " ><tt >{{.Hash.Short}}</tt ></a > {{ $subject -}}
18
- {{- range $idx, $ref := .Refs -}}
19
- {{- if not (regexMatch $ref.Ref $subject) -}}
20
- {{- if $idx -}}, {{- end -}} <a href =" {{ $repourl }}/issues/{{ $ref.Ref}} " > #{{ $ref.Ref}}</a >
21
- {{ end -}}
12
+ {{ range .Commits -}}
13
+ {{- $subject := (regexReplaceAll ` URL ` (regexReplaceAll ` \[(.*)(\d\d)\]\(.*?\) ` .Subject "<a href=\" URL/pull/${2}\" >${1}${2}</a >") $repourl) -}}
14
+ {{- $list := (list) -}}
15
+ {{- range $idx, $ref := .Refs -}}
16
+ {{- if not (regexMatch $ref.Ref $subject) -}}
17
+ {{ $list = append $list $ref }}
18
+ {{- end -}}
19
+ {{- end -}}
20
+ {{ if .TrimmedBody -}}<dl ><dd ><details ><summary > {{ else -}}- {{ end -}}
21
+
22
+ <a href =" {{$repourl}}/commit/{{.Hash.Long}} " ><tt >{{.Hash.Short}}</tt ></a >{{ $subject }}
23
+ {{- if $list -}}
24
+ {{ printf " %s " "(closes"}}
25
+ {{- range $idx, $ref := $list -}}{{ if $idx }}, {{ end }}<a href =" {{ $repourl }}/issues/{{ $ref.Ref}} " > #{{ $ref.Ref}}</a >{{ end }})
26
+ {{- end -}}
27
+ {{ if .TrimmedBody -}}</summary >{{ printf "\n\n%s\n\n" .TrimmedBody }}</details ></dd ></dl >{{ end }}
22
28
{{ end }}
23
- {{ if .TrimmedBody }}</ summary >{{ printf "\n\n%s\n\n" .TrimmedBody }}</ details ></ dd ></ dl >{{ end }}
29
+
24
30
{{ end }}
25
- {{ end -}}
26
31
27
32
{{- if .RevertCommits -}}
28
33
### Reverts
You can’t perform that action at this time.
0 commit comments