CODEOWNERS should enforce reviews for renaming of files
Summary
Renaming of or moving directories and files (including the CODEOWNERS file) is not protected by CODEOWNERS. Therefore, people can circumvent the CODEOWNERS process.
Steps to reproduce
- Create a CODEOWNERS file and ensure there are owners for it.
- through the CLI (Don't use the webUI because of this bug) use git mv to rename the file or move it to a different directory
- Commit and push the changes, and notice no rejection from the server - the changes go through.
Repeat these steps for a whole directory, and for an individual file within the directory.
What is the current bug behavior?
Renaming or moving files and directories is allowed without review from the owners.
What is the expected correct behavior?
Changes should be rejected in the same way as if you change the contents of the file
Edited by Michelle Gill