Filter by "Draft PRs only" in PR list
See original GitHub issueIn 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:
- 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.
- In the “Reviews” filter menu: Add a “Not ready for review (Draft PR)” item. Problem:
- Not very discoverable.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:9
- Comments:20 (13 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@FloEdelmann Oops, I just tried
is:pr is:open draft:false
and it works.@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.