How to create project versioning with update log when pushed to master directory?

Hi all,

I would like to know how could I do project versioning in gitlab?

I have multiple directories: master, develop, etc. When I approve merge request from develop to master directory, I would like to increase the versioning count of that project. (Eg: 1.0.0 to 1.0.1)

The commit message will be the update log for the version.

Is there anyway to do it? Or I have to manual record it somewhere (out of gitlab)?