MCPcopy
hub / github.com/cli/cli / parseTopics

Function parseTopics

pkg/cmd/repo/edit/edit.go:557–563  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

555}
556
557func 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
565func getTopics(ctx context.Context, httpClient *http.Client, repo ghrepo.Interface) ([]string, error) {
566 apiPath := fmt.Sprintf("repos/%s/%s/topics", repo.RepoOwner(), repo.RepoName())

Callers 1

interactiveRepoEditFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected