Configure github (enterprise) repo to only allow fast forward commits / PR merges?
<p>Coming from gerrit to github, there's a major feature I'm missing, namely <a href="https://gerrit-review.googlesource.com/Documentation/project-configuration.html#submit_type" rel="noreferrer">allowing only fast forward merges</a>. Essentially, in my opinion any kind of "CI build sign off" is useless if you're signing off on your change on a stale master branch.</p>

<p>I was wondering if there's any way how this can be configured in (enterprise) github? Is there any setting or other trick that would not allow users to press the "merge pull request" button in github unless the branch was rebased properly?</p>

<p>Preferably, I even would like to add that it should also check whether all commits in the PR were squashed (and the PR can't be merge unless it contains only one commit).</p>

<p>So, perfect solution: Allow only PR merges that have a single commit and were rebased previously.</p>