Skip to content

Cherry-pick system note not added to merge requests when using fast-forward merge with merge trains

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

Summary

When a project is configured with both Fast-forward merge and Enable merge trains, cherry-picking a merged merge request does not add the expected system note to the merge request's activity log.

As per Cherry-pick changes , a system note must be added to to the MR regarding the cherry-pick operation.

Steps to reproduce

  1. Enable Fast-forward merge and Enable merge trains on a project under Settings > Merge Requests.
  2. Implement a pipeline with a dummy job to run a merge request pipeline (e.g., rules: [if: $CI_MERGE_REQUEST_IID]).
  3. Create two branches and add a cherry-pickable commit to one of the branches.
  4. Submit a merge request to the project and merge it normally via the train.
  5. Click Cherry-pick, select the other branch to pick it onto, uncheck Start a new merge request with these changes, and click Cherry-pick.

Example Project

Check ZD ticket for sample projects (internal use only).

What is the current bug behavior?

System note does not get added.

What is the expected correct behavior?

System note must be added.

Relevant logs and/or screenshots

image

Output of checks

This bug happens on GitLab.com

Possible fixes

Patch release information for backports

If the bug fix needs to be backported in a patch release to a version under the maintenance policy, please follow the steps on the patch release runbook for GitLab engineers.

Refer to the internal "Release Information" dashboard for information about the next patch release, including the targeted versions, expected release date, and current status.

High-severity bug remediation

To remediate high-severity issues requiring an internal release for single-tenant SaaS instances, refer to the internal release process for engineers.

Edited by 🤖 GitLab Bot 🤖