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

Function toGitHubV4Strings

api/queries_pr_review.go:705–711  ·  view source on GitHub ↗

toGitHubV4Strings converts a string slice to a githubv4.String slice, optionally appending a suffix to each element.

(strs []string, suffix string)

Source from the content-addressed store, hash-verified

703// toGitHubV4Strings converts a string slice to a githubv4.String slice,
704// optionally appending a suffix to each element.
705func toGitHubV4Strings(strs []string, suffix string) []githubv4.String {
706 result := make([]githubv4.String, len(strs))
707 for i, s := range strs {
708 result[i] = githubv4.String(s + suffix)
709 }
710 return result
711}

Callers 1

RequestReviewsByLoginFunction · 0.85

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected