Prevent merge unless all threads are resolved via API

I will apologize in advanced if this is a common question. I have tried to find the answer to this one on my own but have struggled. I figured someone here might have a fast answer.

In the project settings, under Merge requests->Merge Checks, there is a checkbox that “All threads must be resolved”.

How can I (or can I) set this via the api? I just can’t seem to find the option and I sure don’t want to click through the gui on each project to set this.

I found it. Of course I would find it after posting here.

For anyone else looking, it’s under the “project” settings

https://docs.gitlab.com/ee/api/projects.html#edit-project

3 Likes

thanks man, you save my day. :clap: