(name, source string)
| 209 | } |
| 210 | |
| 211 | func catalogInstallKeyName(name, source string) string { |
| 212 | if source == "" { |
| 213 | return name |
| 214 | } |
| 215 | owner, repo, _, _, ok := parseGithubSource(source) |
| 216 | if !ok { |
| 217 | return name |
| 218 | } |
| 219 | return owner + "/" + repo + ":" + name |
| 220 | } |
| 221 | |
| 222 | // parseGithubSource extracts owner, repo, branch and in-repo path from a GitHub |
| 223 | // URL or "owner/repo" shorthand. It supports the permalink, tree, and blob |
no test coverage detected