diff options
| author | Aaron Crickenberger <spiffxp@gmail.com> | 2021-03-08 00:41:42 -0500 |
|---|---|---|
| committer | Aaron Crickenberger <spiffxp@google.com> | 2021-03-09 14:12:03 -0500 |
| commit | 6153db5bf650f8f10bc52543433866129d1d4991 (patch) | |
| tree | ca08bd94fd2a125834f48aa9cd0f7f8577f66636 /generator/app.go | |
| parent | 34684158e963b01c8aca5728d0e33549fc926586 (diff) | |
generator: make subproject owners links useful
reduce the visual noise, and make the links go to githubs UI
so: https://raw.githubusercontent.com/org/repo/branch/path/to/OWNERS
becomes:
- link text: org/repo/path/to
- link target: https://github.com/org/repo/blob/branch/path/to/ORWNERS
note: this does assume/imply we don't need to model the complexity of
subprojects owning different branches... but, we haven't found a reason
to do so in 5 years, seems a safe assumption
Diffstat (limited to 'generator/app.go')
| -rw-r--r-- | generator/app.go | 1 |
1 files changed, 1 insertions, 0 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, } |
