user1938143
user1938143

Reputation: 1184

How to set multiple CODEOWNERS in a repository in Github

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.

Upvotes: 4

Views: 5949

Answers (1)

Reidenshi
Reidenshi

Reputation: 300

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

Upvotes: 7

Related Questions