~sungo/ghch

ghch/default.tmpl -rw-r--r-- 1.0 KiB
2f80eb93 — sungo fix label list in the details section 3 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{{- define "TLDR"}}
{{- range . }}
* [PR #{{.Number}}]({{.URL}}) - {{.Title}}
{{- end}}
{{- end}}
{{- /* *** */}}
{{- $bugs := index .Buckets "bug" }}
{{- $features := index .Buckets "features" }}
{{- $docs := index .Buckets "docs" }}
{{- $techdebt := index .Buckets "tech-debt" }}
{{- $unmatched := index .Buckets "__unmatched" }}
# Summary

{{- if len $bugs }}

## Bugs Fixed
{{ template "TLDR" $bugs}}
{{- end }}
{{- if len $features }}

## New Features
{{ template "TLDR" $features}}
{{- end }}
{{- if len $docs }}

## Documentation Updates
{{ template "TLDR" $docs}}
{{- end }}
{{- if len $techdebt }}

## Technical Debt
{{ template "TLDR" $techdebt}}
{{- end }}

{{- if len $unmatched }}

## Everything Else
{{ template "TLDR" $unmatched}}
{{- end }}

- - -

# Details
{{ range .PRs }}
## [PR #{{.Number}}]({{.URL}}) - {{.Title}}

* Labels: {{ range .Labels.Nodes }}{{.Name}} {{ end}}
* Created At {{.CreatedAt}}
* Merged At {{.MergedAt}}

* Author: {{.Author.Login}}
* Merged By: {{.MergedBy.Login}}

{{.Body}}
{{ end }}