Fix formatting in GitHub issue generation

This commit is contained in:
Christoph Blecker 2023-02-08 17:17:19 -08:00
parent 042d2889a8
commit 2dce9fcdb3
No known key found for this signature in database
GPG Key ID: B34A59A9D39F838B
2 changed files with 7 additions and 3 deletions

View File

@ -1,7 +1,9 @@
{{lastYear}} Annual Report: {{.Prefix | toUpper}} {{.Name}}
Chairs: {{range .Leadership.Chairs}}@{{.GitHub}} {{end}}
{{- if.Contact.Liaison.GitHub}}
Liaison: @{{.Contact.Liaison.GitHub}}
{{- end}}
Actions for the chair/organizer of the community group:
- [ ] Consult your community group to complete draft of report
@ -13,9 +15,11 @@ Actions for the chair/organizer of the community group:
Once all the above items are complete, this issue may be `/close`'d
A template has already been generated for your group, and is available [here](https://git.k8s.io/community/{{.Dir}}/annual-report-{{lastYear}}.md).
Key dates:
- Initial PR to communtiy repo should be opened by February 14, {{now.UTC.Year}}
- PR should be reviewed and merged by March 1st, {{now.UTC.Year}}
- Initial PR to communtiy repo should be opened by March 24th, {{now.UTC.Year}}
- PR should be reviewed and merged by April 7th, {{now.UTC.Year}}
More detailed information on the annual reports process is available [here](https://git.k8s.io/community/committee-steering/governance/annual-reports.md).

View File

@ -729,7 +729,7 @@ func createAnnualReportIssue(groups []Group, prefix string) error {
outputPath := filepath.Join(outputDir, fmt.Sprintf("%s_%s.md", lastYear(), group.Dir))
templatePath := filepath.Join(baseGeneratorDir, templateDir, annualReportIssueTemplate)
if err := writeTemplate(templatePath, outputPath, "markdown", group); err != nil {
if err := writeTemplate(templatePath, outputPath, "", group); err != nil {
return err
}
}