Closed fredefox closed 2 years ago
@fredefox, out of curiosity, why would you want files without an owner?
Well. The issue is that if I come across a project with such a line in the code owners this program will fail. So it's not really a question of what I would or wouldn't like to have in a code owners file.
That aside there might be legitimate reasons for doing it. Perhaps you want to set a given owner for all files except in some subdirectory and let those be unspecified. This is what they do in the example from the documentation from GitHub.
I'm happy to work on this in the coming week (or two)
👋 @obukhov kindly took care of this. The fix is available in v0.4.0, which I just released.
According to https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners it is valid to have a line in
CODEOWNERS
where no owner is listed. This is interpreted as the file not being owned. Quoting from that link:codeowners
currently doesn't handle this and in stead reports:I tried patching, but I'm not really a proficient in go sadly.