MCPcopy Create free account
hub / github.com/bytebase/bytebase / validateIssueLabels

Function validateIssueLabels

backend/api/v1/project_service.go:1285–1292  ·  view source on GitHub ↗
(labels []*v1pb.Label)

Source from the content-addressed store, hash-verified

1283}
1284
1285func validateIssueLabels(labels []*v1pb.Label) error {
1286 for _, label := range labels {
1287 if label.Color != nil && !isOpaqueColor(label.Color) {
1288 return errors.Errorf("issue label %q color invalid", label.Value)
1289 }
1290 }
1291 return nil
1292}

Callers 3

CreateProjectMethod · 0.85
UpdateProjectMethod · 0.85

Calls 2

isOpaqueColorFunction · 0.85
ErrorfMethod · 0.80

Tested by 1