Bug: When using the /merge quick action, it returns 'Merged' even though it was not

We are only checking the 'mergeable_state' when checking if a merge request is mergeable in the orchestration (See Video below).

This means that these things are being checked (https://gitlab.com/gitlab-org/gitlab/-/blob/08e1047a5ec8c90013cf2114f7d5b59e95fa9142/ee/app/models/ee/merge_request.rb#L122). If approvers, has_denied_policies or mr is blocked.

So if we use the quick action command, it returns true, that it is okay to merge, but it is not.

Video:

Mar-04-2022_12-11-05

Edited by Marc Shaw