Skip to content

marge-bot does not work with merge request pipeline

Hi, thank you for this amazing project. I have the following problem:

Description

From the log, i can see that marge-bot is trying to find the pipeline that has triggered using the commit sha of the latest commit. The problem is that, in Gitlab, a merge request pipeline run not on the commit sha of the last commit but on a synthetic commit created based on the latest commit in target and source branch.

So, get_mr_ci_status in this situation will return None and wait_for_ci_to_pass will log that it had a Suspicious CI status.

Is there a solution for this problem?