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

Function expandToGitHubURL

pkg/cmd/attestation/verify/policy.go:54–59  ·  view source on GitHub ↗
(tenant, ownerOrRepo string)

Source from the content-addressed store, hash-verified

52}
53
54func expandToGitHubURL(tenant, ownerOrRepo string) string {
55 if tenant == "" {
56 return fmt.Sprintf("https://github.com/%s", ownerOrRepo)
57 }
58 return fmt.Sprintf("https://%s.ghe.com/%s", tenant, ownerOrRepo)
59}
60
61func expandToGitHubURLRegex(tenant, ownerOrRepo string) string {
62 url := expandToGitHubURL(tenant, ownerOrRepo)

Callers 2

expandToGitHubURLRegexFunction · 0.85
newEnforcementCriteriaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected