diff options
| -rw-r--r-- | generator/app.go | 1 | ||||
| -rw-r--r-- | generator/committee_readme.tmpl | 2 | ||||
| -rw-r--r-- | generator/sig_readme.tmpl | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/generator/app.go b/generator/app.go index c9e3f85b..31a1322a 100644 --- a/generator/app.go +++ b/generator/app.go @@ -374,6 +374,7 @@ func getExistingContent(path string, fileFormat string) (string, error) { var funcMap = template.FuncMap{ "tzUrlEncode": tzURLEncode, "trimSpace": strings.TrimSpace, + "trimSuffix": strings.TrimSuffix, "githubURL": githubURL, "orgRepoPath": orgRepoPath, } diff --git a/generator/committee_readme.tmpl b/generator/committee_readme.tmpl index 23eb0137..e72836b4 100644 --- a/generator/committee_readme.tmpl +++ b/generator/committee_readme.tmpl @@ -66,7 +66,7 @@ The following [subprojects][subproject-definition] are owned by the {{.Name}} Co {{- end }} - **Owners:** {{- range .Owners }} - - {{.}} + - [{{trimSuffix (orgRepoPath .) "/OWNERS"}}]({{githubURL .}}) {{- end }} {{- if .Contact }} - **Contact:** diff --git a/generator/sig_readme.tmpl b/generator/sig_readme.tmpl index 58c1b7b3..62dcc9f1 100644 --- a/generator/sig_readme.tmpl +++ b/generator/sig_readme.tmpl @@ -76,7 +76,7 @@ The following [subprojects][subproject-definition] are owned by sig-{{.Label}}: {{- end }} - **Owners:** {{- range .Owners }} - - {{.}} + - [{{trimSuffix (orgRepoPath .) "/OWNERS"}}]({{githubURL .}}) {{- end }} {{- if .Contact }} - **Contact:** |
