// enabled checks a a label filter that works as in GitHub: // - empty string means enabled // - individual labels are comma-separated // - [+]<label> means the workload must have that label // - -<label> means the workload must not have that label func enabled(labelFilters []string, labels ...string) bool { … } func containsStr(hay []string, needle string) bool { … }