Coming from CVS, we have a policy that commit messages should be tagged with a bug number (simple suffix \"... [9999]\"). A CVS script checks this during commits and rejects
You need made a script on your pre-receive.
In this script you receive the old and new revision. You can check all commit and return false if one of this is bad.