@cli.register_custom_action('<STR_LIT>')<EOL><INDENT>@exc.on_http_error(exc.GitlabMROnBuildSuccessError)<EOL>def cancel_merge_when_pipeline_succeeds(self, **kwargs):<DEDENT>
path = ('<STR_LIT>' %<EOL>(self.manager.path, self.get_id()))<EOL>server_data = self.manager.gitlab.http_put(path, **kwargs)<EOL>self._update_attrs(server_data)<EOL>
Cancel merge when the pipeline succeeds.

        Args:
            **kwargs: Extra options to send to the server (e.g. sudo)

        Raises:
            GitlabAuthenticationError: If authentication is not correct
            GitlabMROnBuildSuccessError: If the server could not handle the
                request