[go: up one dir, main page]

Skip to content

Auto-merge and the /merge API Endpoint

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Problem to Solve

Many integrations with GitLab around merging need to call the /merge endpoint. This endpoint requires a merge request to be completely ready to merge prior to being able to merge. If the merge request is not ready the endpoint returns a 422 error. The only way for a consumer to figure out what's going on is then to call the merge request API and get the detailed_merge_status.

Proposal

When calling the /merge endpoint, that should just set a merge request to auto-merge. Then when the merge request is ready, the merge will happen. If the merge request is ready to merge, then calling /merge will execute the existing behavior.

Edited by 🤖 GitLab Bot 🤖