How to set multiple CODEOWNERS in a repository in Github

Viewed 547

I want to find a solution to set multiple CODEOWNERS file in a repository. I know, in CODEOWNERS documentation it allows only one CODEOWNERS in one reposiotry. but I have also read using GITHUB Action you can defined multiple CODEOWNERS File, but exact example I have not found.

If you have any solution, please leave a link in the comment.

1 Answers

You can define as many codeowners as you want inside "CODEOWNERS" file. For whole repo:

* @username1 @username2

For separate file inside repo:

/src/somefolder/somefile.txt @username3 @username4
Related