diff options
| author | Aaron Crickenberger <spiffxp@google.com> | 2019-03-20 10:59:17 -0700 |
|---|---|---|
| committer | Aaron Crickenberger <spiffxp@google.com> | 2019-03-20 11:00:17 -0700 |
| commit | 2e1518026be0bccfb2ecf5af2aa4b85317c293c3 (patch) | |
| tree | 38968e1e2fdd1e6e8484fa553d68ef7881ba4251 /generator | |
| parent | 63dcb38987744129f45f3b636f2a545c0e1acd3e (diff) | |
Make subproject contacts optional, nest in display
Diffstat (limited to 'generator')
| -rw-r--r-- | generator/app.go | 2 | ||||
| -rw-r--r-- | generator/sig_readme.tmpl | 11 |
2 files changed, 8 insertions, 5 deletions
diff --git a/generator/app.go b/generator/app.go index 3756d148..295077b3 100644 --- a/generator/app.go +++ b/generator/app.go @@ -89,7 +89,7 @@ type GithubTeams struct { type Subproject struct { Name string Description string - Contact Contact + Contact *Contact Owners []string Meetings []Meeting } diff --git a/generator/sig_readme.tmpl b/generator/sig_readme.tmpl index 6cc9ba7b..734c1512 100644 --- a/generator/sig_readme.tmpl +++ b/generator/sig_readme.tmpl @@ -68,16 +68,19 @@ The following subprojects are owned by sig-{{.Label}}: {{- range .Owners }} - {{.}} {{- end }} +{{- if .Contact }} + - Contact {{- if .Contact.Slack }} - - Slack: [#{{.Contact.Slack}}](https://kubernetes.slack.com/messages/{{.Contact.Slack}}) + - Slack: [#{{.Contact.Slack}}](https://kubernetes.slack.com/messages/{{.Contact.Slack}}) {{- end }} {{- if .Contact.MailingList }} - - [Mailing List]({{.Contact.MailingList}}) + - [Mailing List]({{.Contact.MailingList}}) {{- end }} {{- if .Contact.GithubTeams }} - - GitHub Teams: + - GitHub Teams: {{- range .Contact.GithubTeams }} - - [@kubernetes/{{.Name}}](https://github.com/orgs/kubernetes/teams/{{.Name}}) {{- if .Description }}({{.Description}}){{- end}} + - [@kubernetes/{{.Name}}](https://github.com/orgs/kubernetes/teams/{{.Name}}) {{- if .Description }}({{.Description}}){{- end}} +{{- end }} {{- end }} {{- end }} {{- if .Meetings }} |
