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

Function isGhAwNativeAction

pkg/cli/update_actions.go:34–37  ·  view source on GitHub ↗

isGhAwNativeAction returns true if the action repo is part of the gh-aw native ecosystem (i.e., maintained in the github/gh-aw or github/gh-aw-actions repository). These actions are versioned in lock-step with the CLI and must never be updated beyond the running CLI version.

(repo string)

Source from the content-addressed store, hash-verified

32// (i.e., maintained in the github/gh-aw or github/gh-aw-actions repository). These actions
33// are versioned in lock-step with the CLI and must never be updated beyond the running CLI version.
34func isGhAwNativeAction(repo string) bool {
35 base := gitutil.ExtractBaseRepo(repo)
36 return base == "github/gh-aw" || base == "github/gh-aw-actions"
37}
38
39type actionUpdateDeps struct {
40 getLatestRelease func(ctx context.Context, repo, currentVersion string, allowMajor, verbose bool) (string, string, error)

Callers 2

TestIsGhAwNativeActionFunction · 0.85
updateActionsFunction · 0.85

Calls 1

ExtractBaseRepoFunction · 0.92

Tested by 1

TestIsGhAwNativeActionFunction · 0.68