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