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

Method GetActionDescription

pkg/workflow/action_cache.go:512–519  ·  view source on GitHub ↗

GetActionDescription retrieves the cached action description for the given repo and version. Returns the description and true if a non-empty description is cached, otherwise "" and false.

(repo, version string)

Source from the content-addressed store, hash-verified

510// GetActionDescription retrieves the cached action description for the given repo and version.
511// Returns the description and true if a non-empty description is cached, otherwise "" and false.
512func (c *ActionCache) GetActionDescription(repo, version string) (string, bool) {
513 key := formatActionCacheKey(repo, version)
514 entry, exists := c.Entries[key]
515 if !exists || entry.ActionDescription == "" {
516 return "", false
517 }
518 return entry.ActionDescription, true
519}
520
521// SetActionDescription stores the action description in the cache entry for the given repo and version.
522// If no cache entry exists for the key, a new entry is created.

Callers 1

Calls 1

formatActionCacheKeyFunction · 0.85

Tested by

no test coverage detected