(s string)
| 558 | } |
| 559 | |
| 560 | func parseTopics(s string) []string { |
| 561 | topics := strings.Split(s, ",") |
| 562 | for i, topic := range topics { |
| 563 | topics[i] = strings.TrimSpace(topic) |
| 564 | } |
| 565 | return topics |
| 566 | } |
| 567 | |
| 568 | func getTopics(ctx context.Context, httpClient *http.Client, repo ghrepo.Interface) ([]string, error) { |
| 569 | path, err := safeurl.JoinPath("repos", repo.RepoOwner(), repo.RepoName(), "topics") |
no outgoing calls
no test coverage detected