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

Function parseManifestSourceSpec

pkg/cli/update_manifest.go:28–40  ·  view source on GitHub ↗
(source string)

Source from the content-addressed store, hash-verified

26}
27
28func parseManifestSourceSpec(source string) (*RepoSpec, bool, error) {
29 repoSpec, ok, err := parseRepositoryPackageSpec(strings.TrimSpace(source))
30 if !ok {
31 return nil, false, nil
32 }
33 if err != nil {
34 return nil, true, fmt.Errorf("invalid manifest source %q: %w", source, err)
35 }
36 if repoSpec == nil {
37 return nil, false, nil
38 }
39 return repoSpec, true, nil
40}
41
42func manifestSourceWithRef(repoSpec *RepoSpec, ref string) string {
43 base := repositoryPackageIdentifier(repoSpec.RepoSlug, repoSpec.PackagePath)

Callers 3

UpdateWorkflowsFunction · 0.85

Calls 2

ErrorfMethod · 0.45

Tested by 1