Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Accessing Merge Settings via the GitLab API

I would like to view and perhaps change the merge settings in GitLab (see the screenshot). How do I do this via the API?


Screen shot of GitLab Merge settings

like image 334
csgillespie Avatar asked May 03 '26 22:05

csgillespie


1 Answers

If this is when creating a project there is a string named "merge_method" & "remove_source_branch_after_merge"

 merge_method
 remove_source_branch_after_merge

So this would be

GET /projects id/merge_method 

for existing projects you can use

https://docs.gitlab.com/ce/api/projects.html#project-merge-method

like image 189
Will Avatar answered May 06 '26 15:05

Will



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!