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