MCPcopy
hub / github.com/cli/cli / ListURLWithQuery

Function ListURLWithQuery

pkg/cmd/pr/shared/params.go:222–233  ·  view source on GitHub ↗
(listURL string, options FilterOptions, advancedIssueSearchSyntax bool)

Source from the content-addressed store, hash-verified

220}
221
222func ListURLWithQuery(listURL string, options FilterOptions, advancedIssueSearchSyntax bool) (string, error) {
223 u, err := url.Parse(listURL)
224 if err != nil {
225 return "", err
226 }
227
228 params := u.Query()
229 params.Set("q", SearchQueryBuild(options, advancedIssueSearchSyntax))
230 u.RawQuery = params.Encode()
231
232 return u.String(), nil
233}
234
235func SearchQueryBuild(options FilterOptions, advancedIssueSearchSyntax bool) string {
236 var is, state string

Callers 2

listRunFunction · 0.92
Test_listURLWithQueryFunction · 0.85

Calls 4

SearchQueryBuildFunction · 0.85
QueryMethod · 0.65
SetMethod · 0.65
StringMethod · 0.45

Tested by 1

Test_listURLWithQueryFunction · 0.68