Skip to content
This repository has been archived by the owner on Nov 18, 2021. It is now read-only.

Search pull requests: is:draft produces weird results #1551

Open
OliverJAsh opened this issue Apr 24, 2019 · 3 comments
Open

Search pull requests: is:draft produces weird results #1551

OliverJAsh opened this issue Apr 24, 2019 · 3 comments

Comments

@OliverJAsh
Copy link

I'm playing around with is:draft in combination with other filters like is:open, and I am getting very mixed results.

  • The results seem to depend on the order the filters are used, e.g. is:open is:draft is different from is:draft is:open.
  • is:open is:draft and is:open -is:draft return open and closed PRs. They should only return open PRs?

In some cases, the "open" count seems correct, but the results list is definitely not correct. E.g.

image

@alerque
Copy link

alerque commented May 23, 2019

I think the issue here is that the negative operator is not recognized at all and the term is just discarded; -is:draft returns pretty much everything as if you'd done an empty search. In other words I don't thing the results are "weird" so much as we have no way to search for things that are not a draft. We have is:open and is:closed, but no opposite of is:draft.

@thst-nordic
Copy link

@premkumar-masilamani
Copy link

is:pr is:open review:none draft:false - this filter draft:false works fine with other operators. Just avoid -is:draft.

Mentioned in the above link posted by @thst-nordic. Adding it here for anyone still looking for the same answer.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants