(qualifier string, vs []string)
| 166 | } |
| 167 | |
| 168 | func formatAdvancedIssueSearch(qualifier string, vs []string) (s []string, applicable bool) { |
| 169 | switch qualifier { |
| 170 | case "in": |
| 171 | return formatSpecialQualifiers("in", vs, [][]string{{"title", "body", "comments"}}), true |
| 172 | case "is": |
| 173 | return formatSpecialQualifiers("is", vs, [][]string{{"blocked", "blocking"}, {"closed", "open"}, {"issue", "pr"}, {"locked", "unlocked"}, {"merged", "unmerged"}, {"private", "public"}}), true |
| 174 | case "user", "repo": |
| 175 | return []string{groupWithOR(qualifier, vs)}, true |
| 176 | } |
| 177 | // Let the default formatting take over |
| 178 | return nil, false |
| 179 | } |
| 180 | |
| 181 | func formatSpecialQualifiers(qualifier string, vs []string, specialGroupsToOR [][]string) []string { |
| 182 | specialGroups := make([][]string, len(specialGroupsToOR)) |
nothing calls this directly
no test coverage detected