Skip to content

Rework merge request handling

We're not getting our hopes high with GitLab solving permissions about access to private forks so we need to work around that. Since v13.4, we can now get the fork data via merge request endpoint from the target repo, which is the perfect functionality that we need.

Change the repo access from working with different remotes to instead fetch the special endpoint to get the merge request branch. This approach also simplifies to gitlabci configuration as we don't need to know all the source/target information anymore - it's all just a different "branch" from the target repo.

While we're at it, also get rid of the "child_pipeline" variable. It's pretty useless as we don't need an extra variable, we can use "mr_id" for all those checks as "mr_id" will only be defined for merge requests.

Signed-off-by: Veronika Kabatova vkabatov@redhat.com

Edited by Veronika Kabátová

Merge request reports