diff options
| author | Nikhita Raghunath <nikitaraghunath@gmail.com> | 2019-03-15 16:33:11 +0530 |
|---|---|---|
| committer | Nikhita Raghunath <nikitaraghunath@gmail.com> | 2019-03-15 18:13:12 +0530 |
| commit | 347f7d07d35979b952d52b1c4b234f3761dab2eb (patch) | |
| tree | 163664b42440a5bfe0ee77386f933fc5fde84ca2 /generator/app.go | |
| parent | 010ab0ff52c5e4e33bde1a5a458d674f7840e9e2 (diff) | |
generator: add support for committees
Since committees can have private mailing lists, this commit
also adds a new field for specifying private mailing lists
in the "Contacts" section.
Diffstat (limited to 'generator/app.go')
| -rw-r--r-- | generator/app.go | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/generator/app.go b/generator/app.go index 0b17b100..be33247f 100644 --- a/generator/app.go +++ b/generator/app.go @@ -73,9 +73,10 @@ type Meeting struct { // Contact represents the various contact points for a group. type Contact struct { - Slack string - MailingList string `yaml:"mailing_list"` - GithubTeams []GithubTeams `yaml:"teams"` + Slack string + MailingList string `yaml:"mailing_list"` + PrivateMailingList string `yaml:"private_mailing_list"` + GithubTeams []GithubTeams `yaml:"teams"` } // GithubTeams represents a specific Github Team. @@ -125,6 +126,7 @@ type Context struct { Sigs []Group WorkingGroups []Group UserGroups []Group + Committees []Group } func pathExists(path string) bool { @@ -310,6 +312,10 @@ func main() { return strings.ToLower(ctx.UserGroups[i].Name) <= strings.ToLower(ctx.UserGroups[j].Name) }) + sort.Slice(ctx.Committees, func(i, j int) bool { + return strings.ToLower(ctx.Committees[i].Name) <= strings.ToLower(ctx.Committees[j].Name) + }) + err = createGroupReadme(ctx.Sigs, "sig") if err != nil { log.Fatal(err) @@ -325,6 +331,11 @@ func main() { log.Fatal(err) } + err = createGroupReadme(ctx.Committees, "committee") + if err != nil { + log.Fatal(err) + } + fmt.Println("Generating sig-list.md") outputPath := filepath.Join(baseGeneratorDir, sigListOutput) err = writeTemplate(filepath.Join(baseGeneratorDir, templateDir, listTemplate), outputPath, "markdown", ctx) |
