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

Function previewNamesToMIMETypes

pkg/cmd/api/api.go:728–734  ·  view source on GitHub ↗
(names []string)

Source from the content-addressed store, hash-verified

726}
727
728func previewNamesToMIMETypes(names []string) string {
729 types := []string{fmt.Sprintf("application/vnd.github.%s-preview+json", names[0])}
730 for _, p := range names[1:] {
731 types = append(types, fmt.Sprintf("application/vnd.github.%s-preview", p))
732 }
733 return strings.Join(types, ", ")
734}

Callers 2

apiRunFunction · 0.85

Calls 1

JoinMethod · 0.80

Tested by 1