0

I found an issue using CODEOWNERS mechanism with multiple branches. Imagine if a repository has “master” and “release” branches . In “master” branch "userM" and in “release” branch "userR" is code owner of repository. And we never want to change code owners of those branches.

Branch Code Owner before merge to master Code Owner after merge to master
release * @userR * @userR
master * @userM * @userR

When we merge release into master branch, code owner of master branch will be overwritten by code owner of release branch and both become userR. How can we protect and keep code owner of a branch while merging other branches to it?

hmozaffari
  • 31
  • 3

0 Answers0