(filters prShared.FilterOptions)
| 11 | ) |
| 12 | |
| 13 | func shouldUseSearch(filters prShared.FilterOptions) bool { |
| 14 | return filters.Draft != nil || filters.Author != "" || filters.Assignee != "" || filters.Search != "" || len(filters.Labels) > 0 |
| 15 | } |
| 16 | |
| 17 | func listPullRequests(httpClient *http.Client, detector fd.Detector, repo ghrepo.Interface, filters prShared.FilterOptions, limit int) (*api.PullRequestAndTotalCount, error) { |
| 18 | if shouldUseSearch(filters) { |