Example codeowners configuration

Is there a guide or example on how to use the codeowners in gitea? I have tested it with the latest and nightly version, but in both versions I can’t manage to get it working. I tried protecting the branches, changing roles of the users from general access to no access / read or write, but I just can’t seem to figure out how to make it work.