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

Function clearUpdateResolutionCaches

pkg/cli/update_workflows.go:42–52  ·  view source on GitHub ↗

clearUpdateResolutionCaches clears per-run ref-resolution caches so update operations always start from fresh repository state.

()

Source from the content-addressed store, hash-verified

40// clearUpdateResolutionCaches clears per-run ref-resolution caches so update
41// operations always start from fresh repository state.
42func clearUpdateResolutionCaches() {
43 defaultBranchCache.Range(func(key, value any) bool {
44 defaultBranchCache.Delete(key)
45 return true
46 })
47 branchCommitCache.Range(func(key, value any) bool {
48 branchCommitCache.Delete(key)
49 return true
50 })
51 clearVersionLabelCache()
52}
53
54// UpdateWorkflowsOptions configures workflow update behavior.
55type UpdateWorkflowsOptions struct {

Callers 2

UpdateWorkflowsFunction · 0.85
runUpdateForOrgFunction · 0.85

Calls 2

clearVersionLabelCacheFunction · 0.85
DeleteMethod · 0.80

Tested by

no test coverage detected