(generator): change generator to allow for subproject leads
Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
This commit is contained in:
parent
9cf733b121
commit
705ea74ef1
|
@ -230,6 +230,7 @@ type Subproject struct {
|
||||||
Description string `yaml:",omitempty"`
|
Description string `yaml:",omitempty"`
|
||||||
Contact *Contact `yaml:",omitempty"`
|
Contact *Contact `yaml:",omitempty"`
|
||||||
Owners []string
|
Owners []string
|
||||||
|
Leads []Person `yaml:",omitempty"`
|
||||||
Meetings []Meeting `yaml:",omitempty"`
|
Meetings []Meeting `yaml:",omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -395,6 +396,9 @@ func (c *Context) Sort() {
|
||||||
return subproject.Contact.GithubTeams[i].Name < subproject.Contact.GithubTeams[j].Name
|
return subproject.Contact.GithubTeams[i].Name < subproject.Contact.GithubTeams[j].Name
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
sort.Slice(subproject.Leads, func(i, j int) bool {
|
||||||
|
return subproject.Leads[i].GitHub < subproject.Leads[j].GitHub
|
||||||
|
})
|
||||||
sort.Strings(subproject.Owners)
|
sort.Strings(subproject.Owners)
|
||||||
sort.Slice(subproject.Meetings, func(i, j int) bool {
|
sort.Slice(subproject.Meetings, func(i, j int) bool {
|
||||||
return subproject.Meetings[i].Description < subproject.Meetings[j].Description
|
return subproject.Meetings[i].Description < subproject.Meetings[j].Description
|
||||||
|
|
|
@ -89,6 +89,12 @@ The following [subprojects][subproject-definition] are owned by sig-{{.Label}}:
|
||||||
### {{.Name}}
|
### {{.Name}}
|
||||||
{{- if .Description }}
|
{{- if .Description }}
|
||||||
{{ trimSpace .Description }}
|
{{ trimSpace .Description }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Leads }}
|
||||||
|
- **Leads:**{{ range .Leads }}
|
||||||
|
- {{.Name}} (**[@{{.GitHub}}](https://github.com/{{.GitHub}})**){{if .Company}}, {{.Company}}{{end}}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
- **Owners:**
|
- **Owners:**
|
||||||
{{- range .Owners }}
|
{{- range .Owners }}
|
||||||
|
|
Loading…
Reference in New Issue