BuildRepoURL returns the canonical repository URL stored in skill metadata.
(host, owner, repo string)
| 13 | |
| 14 | // BuildRepoURL returns the canonical repository URL stored in skill metadata. |
| 15 | func BuildRepoURL(host, owner, repo string) string { |
| 16 | return ghrepo.GenerateRepoURL(ghrepo.NewWithHost(owner, repo, host), "") |
| 17 | } |
| 18 | |
| 19 | // ParseRepoURL parses a repository URL stored in skill metadata. |
| 20 | func ParseRepoURL(raw string) (ghrepo.Interface, error) { |