Skip to content

Commit a8430ed

Browse files
add chair terms (#1748)
Signed-off-by: Riaan Kleinhans <[email protected]>
1 parent 394336b commit a8430ed

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

generator/readme_app.go

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,18 @@ type Subproject struct {
1717
Contact Contact `yaml:"contact"`
1818
}
1919

20-
// Person struct to hold person data, including company.
20+
// Term struct to hold start and end dates.
21+
type Term struct {
22+
Start string `yaml:"start,omitempty"`
23+
End string `yaml:"end,omitempty"`
24+
}
25+
26+
// Person struct to hold person data, including company and term.
2127
type Person struct {
2228
Name string `yaml:"name"`
2329
GitHub string `yaml:"github"`
2430
Company string `yaml:"company,omitempty"`
31+
Term Term `yaml:"term,omitempty"` // ADDED: Term for leadership roles
2532
}
2633

2734
// Leadership struct to hold all leadership roles.
@@ -42,7 +49,7 @@ type Meeting struct {
4249
type Contact struct {
4350
Slack string `yaml:"slack"`
4451
MailingList string `yaml:"mailing_list"`
45-
TOCLiaison []Person `yaml:"toc_liaison"` // FIXED: Changed from 'Person' to '[]Person'
52+
TOCLiaison []Person `yaml:"toc_liaison"`
4653
}
4754

4855
// Tag struct to hold tag data, including CharterLink and Subprojects.
@@ -55,7 +62,7 @@ type Tag struct {
5562
Contact Contact `yaml:"contact"`
5663
TagSubprojects []Subproject `yaml:"tag_subprojects"`
5764
CharterLink string `yaml:"charter_link"`
58-
TagInitiatives string `yaml:"tag_initiatives"` // ADDED THIS LINE
65+
TagInitiatives string `yaml:"tag_initiatives"`
5966
}
6067

6168
// TOCSubproject struct to hold TOC subproject data, including CharterLink.
@@ -67,7 +74,7 @@ type TOCSubproject struct {
6774
Meetings []Meeting `yaml:"meetings"`
6875
Contact Contact `yaml:"contact"`
6976
CharterLink string `yaml:"charter_link"`
70-
SubprojectInitiatives string `yaml:"subproject_initiatives"` // ADDED THIS LINE
77+
SubprojectInitiatives string `yaml:"subproject_initiatives"`
7178
}
7279

7380
// Config struct to hold the entire configuration.

generator/tag_readme.tmpl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
{{- if .Leadership.Chairs }}
1010
### Chairs
1111
{{- range .Leadership.Chairs }}
12-
- {{.Name}} (**[@{{.GitHub}}](https://github.com/{{.GitHub}})**){{if .Company}}, {{.Company}}{{end}}
12+
- {{.Name}} (**[@{{.GitHub}}](https://github.com/{{.GitHub}})**){{if .Company}}, {{.Company}}{{end}}{{if .Term.Start}} (Term: {{.Term.Start}} - {{.Term.End}}){{end}}
1313
{{- end }}
1414
{{- end }}
1515

@@ -22,9 +22,9 @@
2222

2323
## Meetings
2424
{{- range .Meetings }}
25-
- **{{.Description}}**:
26-
{{- if .TagCalendar }} [Calendar]({{.TagCalendar}}) {{- end }}
27-
{{- if .RecordingsURL }} | [Recordings]({{.RecordingsURL}}) {{- end }}
25+
- **{{.Description}}**: 
26+
  {{- if .TagCalendar }} [Calendar]({{.TagCalendar}}) {{- end }}
27+
  {{- if .RecordingsURL }} | [Recordings]({{.RecordingsURL}}) {{- end }}
2828
{{- end }}
2929

3030
## Contact

0 commit comments

Comments
 (0)