MCPcopy Index your code
hub / github.com/cli/cli / shouldUseSearch

Function shouldUseSearch

pkg/cmd/pr/list/http.go:13–15  ·  view source on GitHub ↗
(filters prShared.FilterOptions)

Source from the content-addressed store, hash-verified

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

Callers 1

listPullRequestsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected