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

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

Open

Description

@OliverJAsh

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

Activity

  1. alerque commented on May 23, 2019

    @alerque

    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.

  2. premkumar-masilamani commented on Nov 6, 2019

    @premkumar-masilamani

    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 join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions