How to forbid a merge to a specif file extension into Master branch

Hi Team,

We need to allow our developers to merge from dev into master to all files but the .tf files.

Do you have any suggestions of how to block the users to merge into master for all files but .tf?

Tks a lot,
Edson Rodrigues.

Hi,

maybe file locking can be of help here.

Cheers,
Michael

Tks mate,

But we use a GitLab Host (not on Premium and Silver plans) and this feature isnĀ“t available to us!

Tks a lot for try to help!
Edson Rodrigues.

Hi,

another thought would be merge strategies, like discussed here: How to ignore .gitlab-ci.yml file when merging the branches & Setting a "git config" option at the GitLab server

Cheers,
Michael