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