How do I change from a PR to a draft PR at github?

GithubPull Request

Github Problem Overview


Github release the draft PR a while ago.

I have a normal PR and I wanted to change that to a draft PR. How can I do that?

Github Solutions


Solution 1 - Github

Update - Now Available - Jan 2020

Convert Default → Draft

This is possible now, with an option below "Reviewers" section in PR.

convert to draft screenshot

See: Feature Request: Switch from ready to draft in pull requests

Convert Draft → Default

To answer @marsandback comment Draft PR --> PR, just click the Ready for review

draft screenshot

Solution 2 - Github

Solution 3 - Github

You can't change now, but you can follow the feature request from GitHub Community:

Feature Request Switch from ready to draft in pull requests

Solution 4 - Github

Although as this answer is created you currently can't change the stage of a normal pull request into a draft. However, You can prefix the pull request with [WIP] e.g:

[WIP] Allow changing stage of an open pull request to draft.

It is pretty common in open source to claim an issue this way.

Check contributing guidelines on the repository incase they have specific guidelines to follow.

Here is mediawiki guidelines for code contribution

https://www.mediawiki.org/wiki/Developer_Wishlist/2017/Code_Contribution_(Process,_Guidelines,_etc.)

Solution 5 - Github

As it's been pointed out, this is possible by going to the pull request itself. Under the reviewers section on the right, look for the text: "Still in progress? Convert to draft", where "convert to draft" is a hyperlink. Click on it, confirm, and it's done.

See screenshot in the documentation.

Solution 6 - Github

Can convert to draft under the reviewers section.

enter image description here

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionHatsumiView Question on Stackoverflow
Solution 1 - GithubT04435View Answer on Stackoverflow
Solution 2 - GithubHammond95View Answer on Stackoverflow
Solution 3 - GithubFelipe AugustoView Answer on Stackoverflow
Solution 4 - GithubYana Agun SiswantoView Answer on Stackoverflow
Solution 5 - GithubNagevView Answer on Stackoverflow
Solution 6 - GithubAnuruddha Lanka LiyanarachchiView Answer on Stackoverflow