Add enablement check to MR#merge_train via Project#merge_train_for
What does this MR do and why?
This MR adds a feature-enabled check to MergeRequest#merge_train
. We do the same check in Project#merge_request_for(branch)
, and during review a maintainer pointed out that we should probably make this API work the same way.
How to set up and validate locally
Just the tests. As Merge Trains already require being enabled to run, there's no external feature behavioral change. This just makes our internal APIs somewhat more consistent, and easier to work with.
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.