Protecting your one-page website with CODEOWNERS
As you’re working on your one-page portfolio website with your friends, you’ve got different parts of the website you’re each responsible for. Now, you want to make sure that any changes to these parts are checked by the right person before they become part of the main website. This is where something called CODEOWNERS comes into play on GitHub.
What is CODEOWNERS?
Think of CODEOWNERS as a list you put up that says who’s in charge of what. For your website, it’s a file you add to your project that lists who oversees different parts of your site. So, if someone wants to change something, the right person gets to review it first.
Creating the CODEOWNERS file is easier than you think; you can do it in a few easy steps:
- First, you create a new file named
CODEOWNERS
and put it in the root of your repository or.github
folder in your project. It’s like putting that list in a place...