Skip to content

Find the first non-merge train pipeline in pre-merge-checks

Rémy Coutable requested to merge improve-pre-merge-checks-script into master

What does this MR do and why?

In the case an MR has several merge train pipelines in a row (e.g. this can happen when an MR is merged outside of the train), the pre-merge-checks would fail since it looked at the second pipeline in the list regardless of its type.

With this MR, we find the first non-merge train pipeline to perform checks against.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Edited by Rémy Coutable

Merge request reports