Reputation: 1055
I have a simple repo that has branch protection / CODEOWNERs set to:
* @team
Is it possible to add a file / folder to CODEOWNER
to make it be ignored?
Ive tried ! package.json
and !package.json
but both have made the CODEOWNERS file have an error.
Upvotes: 2
Views: 417
Reputation: 5492
Just include it underneath with an empty owner:
# In this example, @octocat owns any file in the `/apps`
# directory in the root of your repository except for the `/apps/github`
# subdirectory, as its owners are left empty.
/apps/ @octocat
/apps/github
Upvotes: 0