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

Function getAbsoluteWorkflowDir

pkg/cli/helpers.go:60–66  ·  view source on GitHub ↗

getAbsoluteWorkflowDir converts a relative workflow dir to absolute path

(workflowDir string, gitRoot string)

Source from the content-addressed store, hash-verified

58
59// getAbsoluteWorkflowDir converts a relative workflow dir to absolute path
60func getAbsoluteWorkflowDir(workflowDir string, gitRoot string) string {
61 absWorkflowDir := workflowDir
62 if !filepath.IsAbs(absWorkflowDir) {
63 absWorkflowDir = filepath.Join(gitRoot, workflowDir)
64 }
65 return absWorkflowDir
66}
67
68// readSourceRepoFromFile reads the 'source' frontmatter field from a local workflow file
69// and returns the "owner/repo" portion (e.g. "github/gh-aw"). Returns "" if the file

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected