fetchPipelines = async () => {
const copies = []
for (const mr of mergeRequests) {
const copy = {...mr, pipelines: []}
const pipelines = await fetchAllPagesFromGitLab(`/projects/${mr.project_id}/merge_requests/${mr.iid}/pipelines`)
for (const pipeline of pipelines) {
const details = await fetchFromGitLab(`/projects/${pipeline.project_id}/pipelines/${pipeline.id}`)
copy.pipelines.push(details)
}
copies.push(copy)
}
return copies
}