I'm using CODEOWNERS file on Github to setup automatic pull-request reviewers based on files/folders. The system works well and reviewers get added automatically to pull-requests.
However, I want to limit this setup just for release branches, and not for private branches. When a private branch is taken off of a release branch, it also gets the CODEOWNERS
file and in turn all the "automatic reviewers for pull-requests" setup.
Is there a way to make sure that the CODEOWNERS
file applies only to specific branches? Or a way to make sure that this particular file doesn't get synced to other branches at all?