GitHub Launches Draft Pull Requests
Written by Kay Ewbank   
Monday, 18 February 2019

GitHub has added a way to show other developers that a pull request is code that is work in progress or even just an idea on how you're thinking of creating code.

The new draft pull request lets you open a pull request to start a discussion with colleagues at the point you have your idea, when you want to start coding, or at when code isn't necessarily going to make it to a final project.

githubdeklogo

 

Draft pull requests let you make it clear that your code is a work in progress. Now when you open a pull request, a dropdown arrow appears next to the “Create pull request” button. Toggle the dropdown arrow whenever you want to create a draft instead.

draft pull requests

Draft pull requests look different so it's clear that the code is in a draft state, and merging is blocked in draft pull requests so you can't absent-mindedly merge your half baked code into the final production code.  Once you're happy that the code is ready to be merged, you can change the status to “Ready for review” near the bottom of your pull request to remove the draft state and allow merging according to your project’s settings. In addition, if you have a CODEOWNERS file in your repository, a draft pull request will suppress notifications to those reviewers until it is marked as ready for review.

When you're ready to get feedback on your draft pull request, you can mark your pull request as ready for review. Then, the pull request can be merged, and code owners will be requested to review the pull request.

Draft pull requests are available in public repositories with GitHub Free and GitHub Pro, and in public and private repositories with GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server.

githubdeklogo

 

 

More Information

About Draft Pull Requests

Related Articles

Microsoft GitHub - What's Different

GitHub Launches Actions

GitHub For Unity Now Available

GitHub Security Alerts For Python

Microsoft Buys GitHub - Get Ready For a Bigger Devil

GitHub Marketplace Now Accepts Free Apps and Offers Free Trials

Microsoft Mass Migration To GitHub 

GitHub Octoverse Reveals The State Of Open Source 

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.

Banner


Gifts For Geeks 2024
22/11/2024

Are you ready for Thanksgiving, when overeating remorse and a surfeit of being thankful causes the unsettling thought that there are only four weeks till the Xmas break? So here is a mix of weird [ ... ]



Looking Forward To NAO 7
03/11/2024

Introduced to the world in 2004 by its creator Bruno Maisonnier the kid-sized, autonomous humanoid robot NAO, turns 20 this year. At less than 2 ft tall, it is small in stature, but plays a big r [ ... ]


More News

espbook

 

Comments




or email your comment to: comments@i-programmer.info

Last Updated ( Monday, 18 February 2019 )