Merge request title field validation
Hello all
Can’t find any way to check (validate) merge request title and prevent to post ones that doesn’t match desired pattern (like commit mesages with pre-receive hook, for instance), can anybody help?
Thanks for taking the time to read and consider my problem
Hy there,
I would like to set up the same validation you are describing before a merge request is even published. But I cannot find any way to do so. Unfortunately, it’s not even a possible to configure a template for the merge request title:
But I came up with an other idea. It is possible to get the CI_MERGE_REQUEST_TITLE inside of a merge request pipeline. Maybe you can add a validation job inside the pipeline and make it fail, if the title does not confirm to your requierements.
2 Likes