Do not add "detached" label for fast-forward merge request pipelines.

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Problem to solve

The detached label is unneeded and can be confusing in fast-forward scenarios.

Intended users

Further details

The detached label in merge request pipelines is a sort of warning sign.

When fast-forward merges are enabled, and the MR is fast-forwardable, the "detached" pipeline is actually an accurate representation of what the merge result will be, and so the the detached label could be omitted.

This may be unnecessary if merge result pipelines are implemented for fast-forward merge (see #26996 (closed) #35628 (closed)), but it would still be useful if pipelines for merge results are disabled or unavailable.

Proposal

If a project uses fast-forward merges (or semi-linear?), and a MR is fast-forwardable, do not add detached to the MR pipeline.

Links / references

Edited by 🤖 GitLab Bot 🤖