Product feedback: If you have a codeowners file and Allowed to push is not selected on protected branches we should show a message in the UI
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Describe what you would like to see improved.
If you have a CODEOWNERS file in the main directory and Allowed to push is not selected on protected branches we should show a message in the UI.
Currently, we have this in the docs in a couple of places. Require code Owner approval and Setup codeowners. But I think this could be an easy quality-of-life fix if Gitlab sees a CODEOWNERS file and this setting is disabled we could provide a banner to tell them to enable code owners in protected branches on the main page.
Rather than have customers look through our docs for what is really an easy fix.
To enable Code Owner’s approval on branches that are already protected:
- On the left sidebar, select Search or go to and find your project.
- Select Settings > Repository.
- Expand Protected branches.
- Select Add protected branch.
- In the list of protected branches, next to the branch, turn on the Code owner approval toggle.
