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

Function resolveLatestRelease

pkg/cli/update_workflows.go:491–493  ·  view source on GitHub ↗

resolveLatestRelease resolves the latest compatible release for a workflow source

(ctx context.Context, repo, currentRef string, allowMajor, verbose bool, coolDown time.Duration)

Source from the content-addressed store, hash-verified

489
490// resolveLatestRelease resolves the latest compatible release for a workflow source
491func resolveLatestRelease(ctx context.Context, repo, currentRef string, allowMajor, verbose bool, coolDown time.Duration) (string, error) {
492 return resolveLatestReleaseWithDeps(ctx, defaultWorkflowUpdateDeps(), repo, currentRef, allowMajor, verbose, coolDown)
493}
494
495func resolveLatestReleaseWithDeps(ctx context.Context, deps workflowUpdateDeps, repo, currentRef string, allowMajor, verbose bool, coolDown time.Duration) (string, error) {
496 updateLog.Printf("Resolving latest release for repo %s (current: %s, allowMajor=%v)", repo, currentRef, allowMajor)

Callers 1

resolveLatestRefFunction · 0.85

Calls 2

Tested by

no test coverage detected