Skip to content

Add target branch in pipeline editor for blank projects

What does this MR do?

For #327082 (closed)

This fixes the bug where, if the user creates a CI file in a blank project from the pipeline editor, the target branch in the commit form is left blank since the repository is empty and doesn't have a default branch yet. In this case, we populate it with the default main branch in the absence of a default branch.

Screenshots

Default_Branch

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Edited by Mireya Andres

Merge request reports