Github – How to add any specific team as code reviewer

How to add any specific team as code reviewer

You just need to create one file CODEOWNERS at below location.

  1. .github/CODEOWNERS
  2. docs/CODEOWNERS
  3. Root: CODEOWNERS
    Like below
    # Set code owners for the entire repo* @your-org/devops-team# Set different owners for a specific folder/docs/ @your-org/docs-team# Specific file ownerREADME.md @your-org/techlead

then set protection rule – Require review from Code Owners

Now when any one raise pull request, it will ask for approval from group you have added in Codeowner file.
add

Leave a Comment

Your email address will not be published. Required fields are marked *