Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set multiple CODEOWNERS in a repository in Github

Tags:

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.

like image 997
user1938143 Avatar asked Oct 25 '25 03:10

user1938143


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
like image 50
Reidenshi Avatar answered Oct 27 '25 02:10

Reidenshi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!