On Wed, Apr 23, 2014 at 11:59 AM, David Ostrovsky
<
david.o...@gmail.com> wrote:
>> I'd like to reject pushes to Gerrit based on a few source code and / or
>> commit message syntax checks. Examples for the checks I'm thinking about
>> would be:
>>
>
> To reject pushes for source code checks i the wrong way.
> Use CI for that. Check OpenStack's validations [1].
I don't like the idea of having changes that break the basic rules
even showing up in Gerrit, thus my wish to reject the push in the
first place. We're already using a CI bot for running unit /
functional tests and giving verify +1/-1 accordingly, but that's a
different thing.
> Commit message validation can be done on the client side by abusing
> Change-Id commit-msg hook.
Local commit hooks have to be installed for each user first, and they
can be easily deleted / skipped (either deliberately or not). I need a
more fool-proof (server-side) solution.
--
Sebastian Schuberth