Open a GitHub Draft Pull Request

Joe Previte
InstructorJoe Previte
Share this video with your friends

Social Share Links

Send Tweet
Published 5 years ago
Updated 3 years ago

In this lesson, you will learn how to open a draft pull request on GitHub. When you open a new PR, before you click the create pr button, click the dropdown and select Create Draft Pull Request. It will have a flag on it stating that the PR is still a work in progress, helping to stop merges before your branch is ready.

If you prefer to learn by reading, you can read the accompanying blog post.

Instructor: [0:00] Open a new pull request. Scroll down to the Create Pull Request button. Instead of clicking this, to the right, click the drop-down menu. Then select Create Draft Pull Request. Now click Draft Pull Request. This will create a draft pull request.

[0:18] You'll see that it adds this label up here so that other people know this is a work in progress. Additionally, there will be a message down here and it will also let you know that draft pull request cannot be merged.

[0:30] This is good for preventing pull requests from being merged before they're ready. When you are ready, you can click Ready for Review and it will turn it from draft mode into ready mode. That's it. That's how you open a draft PR on GitHub.