GitHub Introduces Code Owners
GitHub Introduces Code Owners
Written by Kay Ewbank   
Monday, 10 July 2017

GitHub has added a new feature that you can use to identify the people who 'own' code in a repository, so they can review any changes.

The new code owners option can be used to say which teams or individuals are responsible for a section of code. If you make a pull request on that code. the relevant people are informed automatically.

To make the feature work, all you have to do is to create a file named CODEOWNERS in the repository's root directory or in .github/. Within this file, you have lines that define a file pattern followed by one or more owners. The file format is similar to that used in the gitattributes feature.

From the point the Codeowners file is created, the people identified within it as code owners will automatically be requested for review whenever a pull request touches the files they own. A pull request is created when a developer has created a copy of an open source project, modified it, then passed the modified code back to the original project maintainer to see whether they want to include the changes into the main copy of the code.

 

codeowner

 

There is an option for projects where you want to keep more control. A protected branch option means that the code owner for each owned file has to leave a review before anyone can merge a pull request to that branch.

The developers at Github say code owners was inspired by Chromium's use of OWNERS files, and that they created the Code Owners option as GitHub users said it's not always clear who should review files—even with GitHub's reviewer suggestions. Code Owners overcomes this.

 github

More Information

Code Owners On GitHub

Related Articles

Open Source Friday

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, FacebookGoogle+ or Linkedin.

 

Banner


Introducing Object-Oriented Programming To Teachers
05/09/2017

The Raspberry Pi Foundation has a new course Future Learn. Aimed at teachers, this four week course sets out to introduce the principles of object-oriented programming while creating an adventure game [ ... ]



Top 10 From Around the Web: More PHP Development Resources
01/09/2017

PHP is focus for this roundup of external blog posts. While PHP may not be the most trendy web development language, it is what is behind the scenes of many of the websites we use daily. Here we prese [ ... ]


More News

 

 
 

 

blog comments powered by Disqus

 
 
Banner

   
RSS feed of news items only
I Programmer News
Copyright © 2017 i-programmer.info. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.