Pull request reviews are a GitHub feature that allow you to protect a branch by requiring reviews from an individual or team. CODEOWNERS can be used in combination with pull request reviews to request specific individuals or teams.
- Fork this repository.
- Make a change to a Markdown file in the codebase.
- Create a pull request against the upstream repository.
- A pull request review is required from @hectorsector before the PR can be merged.
- In your fork, change the file in the
.github
folder titledCODEOWNERS
. Change the @hectorsector username to your own. - Add another workshop participant as a collaborator in your repository.
- Navigate to repository Settings > Branches > Branch protection rules > Add rule
- Select: Apply rule to
master
- Select: Require pull request reviews before merging
- Select: Require reviews from CODEOWNERS
- Ask your partner workshop participant to make changes to a Markdown file in your repository.
- You'll be notified that your review is required, Approve or Request Changes.
- Once approved, as your partner to merge their PR.