question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Filter by "Draft PRs only" in PR list

See original GitHub issue

In a repo’s PR list, it would sometimes be useful to see only draft pull requests (e.g. to close long stale drafts or look which can be made “ready to review”). This can be done by adding is:draft to the search term (see GitHub help article; unfortunately is:pr is:open -is:draft doesn’t work as expected 😕).

I see two possibilities where this could be added:

  1. On the left “Open/Close” switcher: Add a “Draft” state. Problems:
    • Takes up much space, which could reintroduce #1830.
    • A draft PR is also “open”.
    • The number of open PRs would likely need to be fetched via the API.
  2. In the “Reviews” filter menu: Add a “Not ready for review (Draft PR)” item. Problem:
    • Not very discoverable.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:9
  • Comments:20 (13 by maintainers)

github_iconTop GitHub Comments

42reactions
vlfigcommented, Jul 18, 2019

@FloEdelmann Oops, I just tried is:pr is:open draft:false and it works.

6reactions
FloEdelmanncommented, Jul 18, 2019

@vlfig Weird 😄

draft:true/draft:false actually works as expected in both the PR list and the global search. I can’t find any documentation about it though.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Filter by "Draft PRs only" in PR list · Issue #1900 - GitHub
In a repo's PR list, it would sometimes be useful to see only draft pull requests (e.g. to close long stale drafts or...
Read more >
View, filter, and open pull requests - Azure Repos
To filter the PR list, on the Pull requests page, select the Filter icon at upper right. Then select Target branch or other...
Read more >
How can I filter pull requests that are not yet approved
Filter pull requests that a reviewer has approved: state:open type:pr review:approved. You can search based on the state of an issue or pull ......
Read more >
Introducing draft pull requests - The GitHub Blog
You can now use draft pull requests to clearly tag when you're coding a work in ... including project tables, task lists, and...
Read more >
Filter out draft pull requests - Visual Studio Feedback
This feature is so close, if there was an option to show/hide draft PRs, or at least sort them to the bottom of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found