Skip to content

Support `/merge` slash command for MRs

What does this MR do?

It adds support for /merge command for Merge Requests

Are there points in the code the reviewer needs to double check?

  • The conditions (if MR can be merged with the slash command) should be checked properly
    • The ability to merge MR is being checked inside InterpretService (which also means that users is not "offered" the command when conditions are not fulfilled) as well as inside IssuableBaseService . No error is being returned from IssuableBaseService to keep the same behaviour as have other commands
    • The command is also not processed in case it is typed manually and the conditions are not fulfilled

Why was this MR needed?

Requested in #24915 (closed) issue

Screenshots (if relevant)

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes #24915 (closed)

Merge request reports