146

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?

2
  • Given that you select that on creation, if you don't see anything in the PR UI, you probably can't.
    – jonrsharpe
    Mar 8, 2019 at 20:44
  • 2
    As of April ~8th (2020) the option finally exists below the reviewers selection box.
    – F Pereira
    Apr 15, 2020 at 10:34

6 Answers 6

196

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

5
  • 2
    Ultimately, how does the PR get un-drafted? All reviewers approving? Can the draft mode be reverted?
    – Kalnode
    Jul 8, 2020 at 18:39
  • 4
    I would put the correct answer on top as an edit and leave the original answer below. We are not talking about a stand-alone software that can still be used in its previous form.
    – BaCaRoZzo
    Jul 9, 2020 at 14:45
  • 5
    @MarsAndBack always via "ready for review". It can always be reverted. Of course companies' policies may vary a lot but, generally speaking, reviewers should not review a draft.
    – BaCaRoZzo
    Jul 9, 2020 at 14:49
  • Note that a screen refresh need to be done manually to see the change
    – jo_
    Mar 16, 2022 at 16:11
  • 3
    Note that this is only available on public repositories
    – Spikatrix
    May 31, 2022 at 10:07
13

The feature is now available!

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

1
  • 5
    Hmm, is this released? I am not able to see the "Convert to draft" in Reviewers section... Jun 4, 2020 at 11:17
6

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

3

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.)

1

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.

0

Can convert to draft under the reviewers section.

enter image description here

1
  • 2
    Although I have seen that option before, I don't always have that option after I've created a PR. May 30, 2022 at 22:29

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.