How to squash commit when approve merge request, gitlab
<p>I have two branches <code>master</code> and <code>release</code> at gitlab.</p>

<p>At release branch, I hope it will only have commit message like: v0.1.0, v0.1.1.</p>

<p>Say after I finished developed v0.1.0, I have have several feature and bugfix commits in <code>master</code> say </p>

<pre><code>c1. bugfix1
c2. feature1 
c3. feature2
</code></pre>

<p>I will create merge request in gitlab from <code>master</code> to <code>release</code>, but I hope to make these three commits into one <code>v0.1.0</code>, and squash c1 c2 c3.</p>

<p>Now , in my existing settings, I will have 4 commit messages:</p>

<pre><code>Merge breanch 'master' into release
c1
c2
c3
</code></pre>

<p>Is there a way to squash it when I approve at gitlab so that there message will squash into: </p>

<pre><code> v0.1.0
</code></pre>

<p>Please note that these two branch are all proteced branches, and if possible I hope there will be <strong>NO</strong> git command on <code>release</code> and <code>master</code> branch , and only gitlab operations</p>