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

Method fromLabels

pkg/intent/resolver.go:130–141  ·  view source on GitHub ↗
(nodeID, url string, labels []string, source AttributionSource, rule string)

Source from the content-addressed store, hash-verified

128}
129
130func (r Resolver) fromLabels(nodeID, url string, labels []string, source AttributionSource, rule string) IntentRecord {
131 return IntentRecord{
132 Status: r.statusForLabels(labels),
133 Source: source,
134 RootNodeID: nodeID,
135 RootType: "artifact",
136 RootURL: url,
137 Labels: cloneStrings(labels),
138 Rule: rule,
139 ResolverVersion: r.ResolverVersion,
140 }
141}
142
143func (r Resolver) unlinked(rule string) IntentRecord {
144 return IntentRecord{

Callers 1

ResolvePullRequestMethod · 0.95

Calls 2

statusForLabelsMethod · 0.95
cloneStringsFunction · 0.85

Tested by

no test coverage detected