Skip to content

Allow filtering pipelines by badges

What does this MR do and why?

Adds a merge_trains param to the pipeline filter params that when set will only return pipelines that were started as part of a merge train.

Adds a badge param to the pipeline filter params that allows you to filter by merge trains, merge requests, and yaml invalid badges.

Screenshots or screen recordings

simplescreenrecorder-2022-06-17_00.04.37

How to set up and validate locally

Open up the pipeline.json route for a project with existing merge train pipelines and append &badge=merge_request as a query parameter, for example http://gdk.test:3000/flightjs/Flight/-/pipelines.json?scope=all&page=1&badge=merge_request.

You should see only pipelines that are merge requests returned.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #363456 (closed)

Edited by Andrew Smith

Merge request reports