Skip to content

Commit 2dce9fc

Browse files
committed
Fix formatting in GitHub issue generation
1 parent 042d288 commit 2dce9fc

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

generator/annual-report/github_issue.tmpl

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{{lastYear}} Annual Report: {{.Prefix | toUpper}} {{.Name}}
22

33
Chairs: {{range .Leadership.Chairs}}@{{.GitHub}} {{end}}
4+
{{- if.Contact.Liaison.GitHub}}
45
Liaison: @{{.Contact.Liaison.GitHub}}
6+
{{- end}}
57

68
Actions for the chair/organizer of the community group:
79
- [ ] Consult your community group to complete draft of report
@@ -13,9 +15,11 @@ Actions for the chair/organizer of the community group:
1315

1416
Once all the above items are complete, this issue may be `/close`'d
1517

18+
A template has already been generated for your group, and is available [here](https://git.k8s.io/community/{{.Dir}}/annual-report-{{lastYear}}.md).
19+
1620
Key dates:
17-
- Initial PR to communtiy repo should be opened by February 14, {{now.UTC.Year}}
18-
- PR should be reviewed and merged by March 1st, {{now.UTC.Year}}
21+
- Initial PR to communtiy repo should be opened by March 24th, {{now.UTC.Year}}
22+
- PR should be reviewed and merged by April 7th, {{now.UTC.Year}}
1923

2024
More detailed information on the annual reports process is available [here](https://git.k8s.io/community/committee-steering/governance/annual-reports.md).
2125

generator/app.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ func createAnnualReportIssue(groups []Group, prefix string) error {
729729

730730
outputPath := filepath.Join(outputDir, fmt.Sprintf("%s_%s.md", lastYear(), group.Dir))
731731
templatePath := filepath.Join(baseGeneratorDir, templateDir, annualReportIssueTemplate)
732-
if err := writeTemplate(templatePath, outputPath, "markdown", group); err != nil {
732+
if err := writeTemplate(templatePath, outputPath, "", group); err != nil {
733733
return err
734734
}
735735
}

0 commit comments

Comments
 (0)