如何拿到gitlab合并请求的预合并的commit hash id

我想在合并请求之前就获取到预合并之后的commit hash id,应该请求哪个openapi获取?

这个几乎是不太可能的,你可以参考下这个 issue