[go: up one dir, main page]

Skip to content

Gitlab API lacks diverged from upstream branch info for mirrored repositories

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

Proposal

We have been using the built in pull mirroring feature for several years and are now mirroring about 100 Open Source repositories to our Omnibus installation.

As the mirrors are used in builds we can not use the "Overwrite diverged branches" feature and since we have so many repositories we can not manually "look for" diverged branches in the web-ui, that can be safely dropped.

Our plan was to implement an interactive script using the GitLab API but it seems the "diverged from upstream" info for a branch of a mirror is not "visible" via the GitLab API, this feels like a rather big oversight. We would like this to be fixed so clean-up of "diverged branches" can be efficiently handled via the API.

It would be very useful for us, if the Branches API response would include a Boolean field like diverged_from_upstream.

Edited by 🤖 GitLab Bot 🤖