[go: up one dir, main page]

Skip to content

Docs feedback: Initiate push mirroring via API?

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

In addition to describing how to set up a push mirror via the API I'd also like to know how to initiate a push via the API.

I've set up several repositories on gitlab.com (49, so far) that are mirrors of repos on our corporate gitlab server. The corporate gitlab server is only accessible from inside the VPN; the mirrors are of code we'd like to be able to read while on an AWS EC2 node. I know how to fire the initial inhouse -> gitlab.com push via the web UI (settings/repository/expand "Mirroring repositories"/click on 'update now'), but I don't see how to do that via PUT or POST (or whatever).

I know the push will be triggered once a commit is made to the origin repo, but several of them are pretty stable and I don't expect a commit any time soon. While I could go through and click on all 49 of them it'd be a lot faster (and less mind-numbing) if I could do that in a little Python script.

Thanks!

Edited by 🤖 GitLab Bot 🤖