Skip to content
Snippets Groups Projects

Add feature flag to allow maintainers to create MR pipelines async

Merged Dylan Griffith requested to merge 463355-async-pipeline-creation-for-merge-requests into master
All threads resolved!
Files
6
@@ -714,12 +714,18 @@ const Api = {
});
},
postMergeRequestPipeline(id, { mergeRequestId }) {
postMergeRequestPipeline(id, { mergeRequestId, asyncCreate }) {
const url = Api.buildUrl(this.mergeRequestsPipeline)
.replace(':id', encodeURIComponent(id))
.replace(':merge_request_iid', mergeRequestId);
return axios.post(url);
const params = {};
if(gon.features.asyncMergeRequestPipelineCreation) {
params["async"] = true
}
return axios.post(url, params);
},
releases(id, options = {}) {
Loading