MCPcopy Index your code
hub / github.com/cli/cli / toGitHubV4Strings

Function toGitHubV4Strings

api/queries_pr_review.go:694–700  ·  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

692// toGitHubV4Strings converts a string slice to a githubv4.String slice,
693// optionally appending a suffix to each element.
694func toGitHubV4Strings(strs []string, suffix string) []githubv4.String {
695 result := make([]githubv4.String, len(strs))
696 for i, s := range strs {
697 result[i] = githubv4.String(s + suffix)
698 }
699 return result
700}

Callers 1

RequestReviewsByLoginFunction · 0.85

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected