MCPcopy Create free account
hub / github.com/github/gh-aw / explicitHostForRepo

Function explicitHostForRepo

pkg/cli/spec.go:265–272  ·  view source on GitHub ↗
(repoSlug string)

Source from the content-addressed store, hash-verified

263}
264
265func explicitHostForRepo(repoSlug string) string {
266 if repoHost := getGitHubHostForRepo(repoSlug); repoHost != getGitHubHost() {
267 if u, parseErr := url.Parse(repoHost); parseErr == nil && u.Host != "" {
268 return u.Host
269 }
270 }
271 return ""
272}
273
274func parseWorkflowSpec(spec string) (*WorkflowSpec, error) {
275 specLog.Printf("Parsing workflow spec: %q", spec)

Callers 3

parseWorkflowSpecFunction · 0.85
ResolveWorkflowsFunction · 0.85

Calls 2

getGitHubHostForRepoFunction · 0.85
getGitHubHostFunction · 0.85

Tested by

no test coverage detected