Force commit templates to accept push

Hello everyone.
Would it be possible to configure Gitlab so that if a user wants to upload a commit to the repository, it is not allowed if the commit does not have a certain format? For example, force that if the commit does not start with “#Issue Number:” Do not allow the change to be uploaded to the repository.

Looks like you need this: Push rules | GitLab but that is only possible if you have a premium subscription. So, if you are a free user, then most likely not possible as you don’t have that functionality.