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

Method fromRoot

pkg/intent/resolver.go:117–128  ·  view source on GitHub ↗
(root RootReference, source AttributionSource, rule string)

Source from the content-addressed store, hash-verified

115}
116
117func (r Resolver) fromRoot(root RootReference, source AttributionSource, rule string) IntentRecord {
118 return IntentRecord{
119 Status: r.statusForLabels(root.Labels),
120 Source: source,
121 RootNodeID: root.NodeID,
122 RootType: root.Type,
123 RootURL: root.URL,
124 Labels: cloneStrings(root.Labels),
125 Rule: rule,
126 ResolverVersion: r.ResolverVersion,
127 }
128}
129
130func (r Resolver) fromLabels(nodeID, url string, labels []string, source AttributionSource, rule string) IntentRecord {
131 return IntentRecord{

Callers 1

ResolvePullRequestMethod · 0.95

Calls 2

statusForLabelsMethod · 0.95
cloneStringsFunction · 0.85

Tested by

no test coverage detected