MCPcopy Create free account
hub / github.com/cli/cli / parseTopics

Function parseTopics

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

Source from the content-addressed store, hash-verified

558}
559
560func 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
568func getTopics(ctx context.Context, httpClient *http.Client, repo ghrepo.Interface) ([]string, error) {
569 path, err := safeurl.JoinPath("repos", repo.RepoOwner(), repo.RepoName(), "topics")

Callers 1

interactiveRepoEditFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected