Merge trains POST API
What does this MR do and why?
Creates a POST API endpoint at gitlab.com/v4/projects/:id/merge_trains/merge_requests/:merge_request_iid which allows the caller to add merge requests to a merge train for the target project. Merge trains are a premium feature so this is intended to also be a premium feature.
The code for this API endpoint is modeled after a pre-existing merge request endpoint with has this source code.
This MR is related to the Epic: &5864
Related MRs for this API Bundle
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- Run gitlab in premum mode
- Request the API with POST /api/v4/projects/:id/merge_trains/merge_requests/:merge_request_iid
curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/:id/merge_trains/merge_requests/:merge_request_iid"
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.