Reject un-signed commits hook does not work if commit is made through UI

Summary

If a project has the Reject unsigned commits push rule enabled, it will reject any pushed commit that is not signed, but it will not reject any commit made through the UI.

Steps to reproduce

  1. Check the Reject unsigned commits settings under Project => Settings => Repository => Push rules
  2. Through the UI add/modify a file and commit

What is the current bug behavior?

The push rule does not reject the unsigned commit

What is the expected correct behavior?

Push rule should reject the signed commit.

Relevant logs and/or screenshots

Repository___Administrator___THE-GREAT___GitLabCommits___test___Administrator___THE-GREAT___GitLab