Skip to content

Instantly share code, notes, and snippets.

View amadeubarbosa's full-sized avatar

Amadeu Barbosa Jr amadeubarbosa

View GitHub Profile
@amadeubarbosa
amadeubarbosa / scratch-clone-merge-request.js
Created June 3, 2021 21:00
Recreating merge-request in another repository
// WHY?
// https://forum.gitlab.com/t/how-to-move-merge-request-between-projects/52914
// OLD PROJECT:
let r = await fetch("https://gitlab.xxx.com/api/v4/projects/269/merge_requests?labels=Moving")
let mr = await r.json()
console.log(mr)
// ADD NEW PROJECTS AS ADDITIONAL REMOTES:
// git remote add mongodb https://gitlab.xxx.com/xxx/xxx-data/xxx-storage/xxx-mongodb.git