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

Method statusForLabels

pkg/intent/resolver.go:161–172  ·  view source on GitHub ↗
(labels []string)

Source from the content-addressed store, hash-verified

159}
160
161func (r Resolver) statusForLabels(labels []string) AttributionStatus {
162 if len(labels) == 0 {
163 return AttributionUnlinked
164 }
165 if r.MatchLabels == nil {
166 return AttributionUnmapped
167 }
168 if len(r.MatchLabels(labels)) > 0 {
169 return AttributionMapped
170 }
171 return AttributionUnmapped
172}
173
174func cloneStrings(values []string) []string {
175 if len(values) == 0 {

Callers 3

ResolveIssueMethod · 0.95
fromRootMethod · 0.95
fromLabelsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected