MCPcopy
hub / github.com/cli/cli / QueryHasStateClause

Function QueryHasStateClause

pkg/cmd/pr/shared/params.go:269–282  ·  view source on GitHub ↗
(searchQuery string)

Source from the content-addressed store, hash-verified

267}
268
269func QueryHasStateClause(searchQuery string) bool {
270 argv, err := shlex.Split(searchQuery)
271 if err != nil {
272 return false
273 }
274
275 for _, arg := range argv {
276 if arg == "is:closed" || arg == "is:merged" || arg == "state:closed" || arg == "state:merged" || strings.HasPrefix(arg, "merged:") || strings.HasPrefix(arg, "closed:") {
277 return true
278 }
279 }
280
281 return false
282}
283
284// MeReplacer resolves usages of `@me` to the handle of the currently logged in user.
285type MeReplacer struct {

Callers 2

listRunFunction · 0.92
Test_QueryHasStateClauseFunction · 0.85

Calls

no outgoing calls

Tested by 1

Test_QueryHasStateClauseFunction · 0.68