Require expression in commit messages only for certain branches
<!--IssueSummary start-->
<details>
<summary>
Everyone can contribute. [Help move this issue forward](https://handbook.gitlab.com/handbook/marketing/developer-relations/contributor-success/community-contributors-workflows/#contributor-links) while earning points, leveling up and collecting rewards.
</summary>
- [Close this issue](https://contributors.gitlab.com/manage-issue?action=close&projectId=278964&issueIid=395027)
</details>
<!--IssueSummary end-->
### Proposal
Gitlab should also support the ability to **Require expression in commit messages ** but only for certain branches, like `main/master`.
Reason is that you don't want to force the developer to be placing commit prefixes on every commit on a MR development.
issue