Skip to content

Fix gitlab:seed:merge_trains:project rake task

What does this MR do and why?

The DEFAULT_BRANCH constant does not exist. It probably disappeared during code review when the task was introduced. Instead we can use the project's default branch.

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

Run the rake task:

bin/rake gitlab:seed:merge_trains:project

This should create a project with merge trains enabled and 20 open merge requests.

MR acceptance checklist

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

Edited by Hordur Freyr Yngvason

Merge request reports